Vulnerability library
Security checkOctober 21, 2024

secp256k1-node allows private key extraction over ECDH

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

High severitynpmsecp256k1

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

In elliptic-based version, loadUncompressedPublicKey has a check that the public key is on the curve: https://github.com/cryptocoinjs/secp256k1-node/blob/6d3474b81d073cc9c8cc8cfadb580c84f8df5248/lib/elliptic.js#L37-L39

loadCompressedPublicKey is, however, missing that check: https://github.

Recommendation

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

  • Affected version(s): **<= 3.8.0 >= 4.0.0, < 4.0.4 = 5.0.0**
  • Patched version(s): **3.8.1 4.0.4 5.0.1**

References

Could your website be exposed too?

SmartScanner can check your website for secp256k1-node allows private key extraction over ECDH and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 21, 2024