secp256k1@4.0.3 vulnerabilities

This module provides native bindings to ecdsa secp256k1 functions

Direct Vulnerabilities

Known vulnerabilities in the secp256k1 package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Improper Validation of Integrity Check Value

secp256k1 is a This module provides native bindings to ecdsa secp256k1 functions

Affected versions of this package are vulnerable to Improper Validation of Integrity Check Value due to a missing that check in loadCompressedPublicKey. An attacker can extract enough information to fully restore the private key from as little as 11 ECDH sessions.

Note: Other operations on public keys likepublicKeyVerify() incorrectly returning true and publicKeyTweakMul() returning predictable outcomes allowing to restore the tweak are also affected.

How to fix Improper Validation of Integrity Check Value?

Upgrade secp256k1 to version 3.8.1, 4.0.4, 5.0.1 or higher.

<3.8.1 >=4.0.0 <4.0.4 >=5.0.0 <5.0.1