Has it been Pwned
ImplementationLimited impactMedium confidence

npm 'elliptic': RFC 6979 nonce truncation can leak ECDSA keys (CVE-2025-14505)

A flaw published in January 2026 in elliptic <= 6.6.1 mis-computed the byte length of the deterministic RFC 6979 nonce candidate when it had leading zero bytes, truncating k and producing faulty signatures. An attacker holding both a faulty signature and a correct signature for the same input could, under some conditions, derive the private key.

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

This is the second key-exposure bug in elliptic's nonce handling within a year, following the February 2025 malformed-input nonce-reuse advisory. It shows how fragile hand-rolled big-integer and encoding code in deterministic-nonce implementations can be. Rated CVSS 5.6 (CNA), with high attack complexity. A pure IMPLEMENTATION bug.

Sources

  1. cveCVE-2025-14505 DetailNIST NVD, nvd.nist.gov