Vulnerability library
Security checkSeptember 06, 2023

Invalid Curve Attack in node-jose

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

Medium severitynpmnode-jose

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Affected versions of node-jose are vulnerable to an invalid curve attack. This allows an attacker to recover the private secret key when JWE with Key Agreement with Elliptic Curve Diffie-Hellman Ephemeral Static (ECDH-ES) is used.

Proof of Concept

Recommendation

Update the node-jose package to the latest compatible version. Followings are version details:

  • Affected version(s): < 0.9.3
  • Patched version(s): 0.9.3

References

Could your website be exposed too?

SmartScanner can check your website for Invalid Curve Attack in node-jose and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 06, 2023