Vulnerability library
Security checkFebruary 23, 2025

Elliptic's private key extraction in ECDSA upon signing a malformed input (e.g. a string)

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmelliptic

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Private key can be extracted from ECDSA signature upon signing a malformed input (e.g. a string or a number), which could e.g. come from JSON network input

Note that elliptic by design accepts hex strings as one of the possible input types

Recommendation

Update the elliptic package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 6.6.0
  • Patched version(s): 6.6.1

References

Could your website be exposed too?

SmartScanner can check your website for Elliptic's private key extraction in ECDSA upon signing a malformed input (e.g. a string) and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 23, 2025