MEDIUM5.9
GHSA-rvj9-8cvx-3vq9
Invalid Curve Attack in node-jose
Quick fix
GHSA-rvj9-8cvx-3vq9 — node-jose: upgrade to the fixed version with the command below.
npm install node-jose@0.9.3Details
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](https://gist.github.com/asanso/fa25685348051ef6a28d49aa0f27a4ae)
## Recommendation
Update to version 0.9.3 or later.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-16007[ADVISORY]
- https://github.com/cisco/node-jose/pull/88[WEB]
- https://github.com/cisco/node-jose/commit/f92cffb4a0398b4b1158be98423369233282e0af[WEB]
- https://gist.github.com/asanso/fa25685348051ef6a28d49aa0f27a4ae[WEB]
- https://github.com/cisco/node-jose[PACKAGE]
- https://github.com/cisco/node-jose/compare/0.9.2...0.9.3[WEB]
- http://blog.intothesymmetry.com/2017/03/critical-vulnerability-in-json-web.html[WEB]