CVE-2024-1631
published critical CVSS 3.1 · 9.1agent-js: Insecure Key Generation in `Ed25519KeyIdentity.generate`
Package status and fixes
Description
Impact: The library offers a function to generate an ed25519 key pair via Ed25519KeyIdentity.generate with an optional param to provide a 32 byte seed value, which will then be used as the secret key. When no seed value is provided, it is expected that the library generates the secret key using secure randomness. However, a recent change broke this guarantee and uses an insecure seed for key pair generation. Since the private key of this identity (535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe) is compromised, one could lose funds associated with the principal on ledgers or lose access to a canister where this principal is the controller.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- Dfinity · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Internet Computer | agent-js | v0.20.0-beta.0 to < v1.0.1 (affected · 1.0.1)Default: unaffected | Dfinity · cna |
| dfinity | agent-js | v0.20.0-beta.0 to < v1.0.1 (affected · custom)Default: unaffected | CISA-ADP · adp |
Weaknesses
2- CWE-321 CWE-321: Use of Hard-coded Cryptographic Key
- CWE-330 CWE-330: Use of Insufficiently Random Values
References
5Provider assertions
3Dfinity · cna
agent-js: Insecure Key Generation in `Ed25519KeyIdentity.generate`
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e1f69ad5134b844711cb4f0da3a2fed8f459f0457f7e1b67423760140c2414dc
- Ingested
- 23 Sep 2026, 08:18:22 UTC
- Source record
- Official CVE record