Elliptic Curve Key Disclosure Affecting node-jose package, versions <0.9.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (75th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDnpm:node-jose:20170313
  • published14 Mar 2017
  • disclosed13 Mar 2017
  • creditAntonio Sanso, Quan Nguyan

Introduced: 13 Mar 2017

CVE-2017-16007  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade node-jose to version 0.9.3 or higher.

Overview

node-jose is A JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for current web browsers and node.js-based servers.

Affected versions of the package are vulnerable to Elliptic Curve Key Disclosure.

A JSON Web Token (JWT) defines a container that transports data between two parties. When a JWT is signed with a private key by one of the parties, it's known as a JSON Web Signature (JWS).

The "JWK" (JSON Web Key) is a JSON based open standard used for creating access tokens. JWK's Header Parameter allows it to include the public key that corresponds to the key used to sign the JWS. If the Header Parameter includes this public key, an attacker could then use it to generate a private key / public key pair, send the public key together with the signature and the signature will be valid.

This vulnerability is related to SNYK-JAVA-ORGBITBUCKETBC-30206 and SNYK-JAVA-COMNIMBUSDS-30205

CVSS Scores

version 3.1