{"cve":"CVE-2024-1631","nvd":{"published":"2024-02-21T03:15:08.747","modified":"2026-06-17T07:04:39.777","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1},"cwes":["CWE-330","CWE-321"],"references":["https://agent-js.icp.xyz/identity/index.html","https://github.com/dfinity/agent-js","https://github.com/dfinity/agent-js/pull/851","https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3","https://www.npmjs.com/package/@dfinity/identity/v/1.0.1"],"products":["dfinity:icp-js-core"],"source":"nvd","synced_at":"2026-10-19T21:45:59.823092188+00:00"},"epss":{"cve":"CVE-2024-1631","score":0.00882,"percentile":0.59165,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-c9vv-fhgv-cjc3","url":"https://osv.dev/vulnerability/GHSA-c9vv-fhgv-cjc3","summary":"agent-js: Insecure Key Generation in `Ed25519KeyIdentity.generate`","modified":"2026-07-08T06:53:06.618098144Z","packages":[{"ecosystem":"npm","name":"@dfinity/identity","purl":"pkg:npm/%40dfinity/identity","ranges":[">=0.20.0-beta.0 <1.0.1"],"fixed":["1.0.1"]},{"ecosystem":"npm","name":"@dfinity/auth-client","purl":"pkg:npm/%40dfinity/auth-client","ranges":[">=0.20.0-beta.0 <1.0.1"],"fixed":["1.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}