Description
node-jose is a JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for current web browsers and node.js-based servers. node-jose earlier than version 0.9.3 is 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.
Remediation
References
http://blog.intothesymmetry.com/2017/03/critical-vulnerability-in-json-web.html
https://gist.github.com/asanso/fa25685348051ef6a28d49aa0f27a4ae
https://github.com/cisco/node-jose
https://nodesecurity.io/advisories/324
Related Vulnerabilities
CVE-2020-14967 Vulnerability in maven package org.webjars.npm:jsrsasign
CVE-2022-31183 Vulnerability in maven package co.fs2:fs2-io_sjs1_2.12
CVE-2017-16201 Vulnerability in npm package zjjserver
CVE-2019-6284 Vulnerability in maven package org.webjars.npm:node-sass
CVE-2020-28442 Vulnerability in maven package org.webjars.bower:js-data