Live threats

All CVEs / Dfinity

CVE-2024-1631Dfinity Icp-js-core

Critical 9.1 No auth needed

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
Weakness (CWE)
CWE-321, CWE-330
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Icp-js-core.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
dfinityicp-js-core≥ 0.20.0 < 1.0.1

Official sources

References

Links published by the sources. Open them with care.