CVE-2024-1631

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:dfinity:icp-js-core:*:*:*:*:*:node.js:*:*

History

10 Dec 2025, 17:16

Type Values Removed Values Added
CPE cpe:2.3:a:dfinity:icp-js-core:*:*:*:*:*:node.js:*:*
First Time Dfinity icp-js-core
Dfinity
References () https://agent-js.icp.xyz/identity/index.html - () https://agent-js.icp.xyz/identity/index.html - Broken Link
References () https://github.com/dfinity/agent-js - () https://github.com/dfinity/agent-js - Product
References () https://github.com/dfinity/agent-js/pull/851 - () https://github.com/dfinity/agent-js/pull/851 - Issue Tracking, Patch
References () https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3 - () https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3 - Exploit, Vendor Advisory
References () https://www.npmjs.com/package/@dfinity/identity/v/1.0.1 - () https://www.npmjs.com/package/@dfinity/identity/v/1.0.1 - Product

21 Nov 2024, 08:50

Type Values Removed Values Added
References () https://agent-js.icp.xyz/identity/index.html - () https://agent-js.icp.xyz/identity/index.html -
References () https://github.com/dfinity/agent-js - () https://github.com/dfinity/agent-js -
References () https://github.com/dfinity/agent-js/pull/851 - () https://github.com/dfinity/agent-js/pull/851 -
References () https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3 - () https://github.com/dfinity/agent-js/security/advisories/GHSA-c9vv-fhgv-cjc3 -
References () https://www.npmjs.com/package/@dfinity/identity/v/1.0.1 - () https://www.npmjs.com/package/@dfinity/identity/v/1.0.1 -

21 Feb 2024, 05:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-02-21 03:15

Updated : 2025-12-10 17:16


NVD link : CVE-2024-1631

Mitre link : CVE-2024-1631

CVE.ORG link : CVE-2024-1631


JSON object : View

Products Affected

dfinity

  • icp-js-core
CWE
CWE-321

Use of Hard-coded Cryptographic Key

CWE-330

Use of Insufficiently Random Values