Has it been Pwned
ImplementationPractical impactMedium confidence

npm 'elliptic' library: signature malleability CVEs (2024) and private-key extraction via nonce reuse (2025)

The widely used JavaScript library 'elliptic' (indutny) shipped a run of validation fixes: CVE-2024-42459/42460/42461 (EdDSA and ECDSA signature malleability from missing length, leading-bit and DER-strictness checks, Aug 2024) and CVE-2024-48948/48949 (wrong rejections and missing EdDSA S < n check). On 12 Feb 2025 a critical advisory (GHSA-vjh7-7g9h-fjfh, CVSS 9.0, reported by ChALkeR) showed that signing a malformed, non-byte-array message could produce the same nonce for two different messages, leaking the private key from a single attacker-chosen signature.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

elliptic is a long-standing dependency of the JavaScript crypto and Ethereum tooling ecosystem, so these bugs spread mainly through transitive dependencies. Fixed in 6.5.7 (malleability) and 6.6.1 (key extraction); a further nonce-truncation flaw (CVE-2025-14505) was published in January 2026. IMPLEMENTATION: loose input typing and validation, not curve weaknesses.

Sources

  1. cveGHSA-vjh7-7g9h-fjfh: Private key extraction in ECDSA upon signing a malformed inputGitHub Advisory Database, github.com
  2. cveGitLab advisory: CVE-2024-42459 (elliptic)GitLab, advisories.gitlab.com
  3. blogPrivate Key Leakage in ECDSA Signatures: Analysis of Malformed Input Vulnerability in the Elliptic LibrarySlowMist, slowmist.medium.com