CVE-2017-16007 Invalid Curve Attack in node-jose

Medium 5.9 Published Updated

An attacker can recover private keys via an invalid curve attack when using ECDH-ES encryption in the node-jose library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-16007?

CVE-2017-16007 is a medium-severity vulnerability in HackerOne node-jose node module, published on 4 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-200

Which versions are affected by CVE-2017-16007?

2 open source packages ship an affected version, including node-jose. It affects 1 product.

PackageAffectedFixed in
node-jose npmAll versions0.9.3
node-jose npmAll versions0.9.3

Products include Cisco Node-Jose.

How do I fix CVE-2017-16007?

Upgrade node-jose to 0.9.3 or later.

Is CVE-2017-16007 being exploited?

There is no known exploitation of CVE-2017-16007 in the wild and no public exploit code.

Sources

Also known as GHSA-rvj9-8cvx-3vq9.

Is CVE-2017-16007 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free