CVE-2024-1631Dfinity Icp-js-core
Critical 9.1 No auth needed
Follow: this CVE · Dfinity · Dfinity Icp-js-core We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 66
- Auth required
- No
- Published
- Feb 21, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Icp-js-core.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @dfinity/auth-client |
≥ 0.20.0-beta.0 < 1.0.1 |
1.0.1 |
npm install @dfinity/auth-client@1.0.1 |
| npm | @dfinity/identity |
≥ 0.20.0-beta.0 < 1.0.1 |
1.0.1 |
npm install @dfinity/identity@1.0.1 |
Per OSV / GitHub Advisories (GHSA-c9vv-fhgv-cjc3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| dfinity | icp-js-core | ≥ 0.20.0 < 1.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- agent-js.icp.xyz Broken Link
- github.com Product
- github.com Issue Tracking Patch
- github.com Exploit Vendor Advisory
- www.npmjs.com Product