NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2024-48948: Valid ECDSA signatures erroneously rejected in Elliptic

lowCVSS 4.0 2.3 · 3.1 4.8GHSA-fc9h-whq2-v747

The Elliptic prior to 6.6.0 for Node.js, in its for ECDSA implementation, does not correctly verify valid signatures if the hash contains at least four leading 0 bytes and when the order of the elliptic curve's base point is smaller than the hash, because of an truncateToN anomaly. This leads to valid signatures being rejected. Legitimate transactions or communications may be incorrectly flagged as invalid.

Published Oct 15, 2024 · Updated Nov 27, 2025

Affected packages

elliptic

Ecosystem
npm
Affected
< 6.6.0
Fixed in
6.6.0
Check
npm ls elliptic

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

The Elliptic prior to 6.6.0 for Node.js, in its for ECDSA implementation, does not correctly verify valid signatures if the hash contains at least four leading 0 bytes and when the order of the elliptic curve's base point is smaller than the hash, because of an _truncateToN anomaly. This leads to valid signatures being rejected. Legitimate transactions or communications may be incorrectly flagged as invalid.

Credited to martincostello, IchordeDionysos, tal-sealsecurity.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries