CVE-2024-1631agent-js: Insecure Key Generation in `Ed25519KeyIdentity.generate`
- 9.1CriticalCVSS base score
- 0.88%Exploitation in 30 daysEPSS · top 40% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Dfinity
- 2 days later
· 2 days later
Published
- 6 months later
· 6 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| DfinityCNA (assigner) | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVDNVD · Analyzed | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.88% · top 40% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.1.
Affected products
- affected v0.20.0-beta.0 – < v1.0.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@dfinity/auth-clientGHSA-c9vv-fhgv-cjc3 (opens in a new tab)
- npm@dfinity/identityGHSA-c9vv-fhgv-cjc3 (opens in a new tab)
References
References5
- https://github.com/dfinity/agent-js/pull/851 (opens in a new tab)x_transferred
- https://www.npmjs.com/package/@dfinity/identity/v/1.0.1 (opens in a new tab)x_transferred
- https://github.com/dfinity/agent-js (opens in a new tab)x_transferred
- https://agent-js.icp.xyz/identity/index.html (opens in a new tab)x_transferred
- https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0614 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-c9vv-fhgv-cjc3 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-1631)Record last updated .