Vulnerability DatabaseGHSA-vjh7-7g9h-fjfh

GHSA-vjh7-7g9h-fjfh
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-vjh7-7g9h-fjfh) affects the elliptic npm package versions <= 6.6.0 and was discovered in February 2025. This critical severity vulnerability allows for private key extraction in ECDSA when signing malformed inputs such as strings or numbers. The issue was patched in version 6.6.1 (GitHub Advisory).

Technical details

The vulnerability occurs in the ECDSA signing process where different BN (Big Number) instances could generate equivalent arrays after conversion. This leads to nonce reuse when processing different messages, enabling private key extraction from signature pairs. The issue stems from the code's handling of message conversion in the elliptic library's EC implementation. The vulnerability has a CVSS v4 score of 9.0 (Critical), with attack vectors including network access, low attack complexity, and no required privileges or user interaction (GitHub Advisory).

Impact

The vulnerability enables full private key extraction when signing a single malicious message that passes JSON.stringify/JSON.parse operations. This impact is particularly severe as it compromises the fundamental security of the ECDSA implementation, affecting both secp256k1 and ed25519 curves (GitHub Advisory).

Mitigation and workarounds

Users should upgrade to elliptic version 6.6.1 or later which includes the fix for this vulnerability. The patch implements additional validation checks for message inputs and ensures bijective mapping between messages and nonces (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management