Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceComponentsnpm

jsonwebtoken

JSON Web Token signing and verification with HMAC-SHA-2, RSA PKCS#1 v1.5, RSA-PSS and ECDSA on P-256, P-384 and P-521, computed by the Node.js crypto module.

In short

What to know.

Algorithms
HMAC, RSA signatures, ECDSA on P-256, ECDSA on P-384 and 1 more4 of 5 would be broken by a large quantum computer.
Advisories
4 in the storeOSV last read 3 December 2026, 16:48 UTC.
What to do
Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from RSA signatures, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521 before large quantum computers exist.

4 in the store

Advisories

Advisories for jsonwebtoken
AdvisoryIdAffected versionsFixed inSource's rating
jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMACGHSA-hjrf-2m68-5959before 9.0.0Fixed in 9.0.0Rated Moderate
jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify()GHSA-qwph-4952-7xr6before 9.0.0Fixed in 9.0.0Rated Moderate
jsonwebtoken unrestricted key type could lead to legacy keys usage GHSA-8cf7-32gw-wr33before 9.0.0Fixed in 9.0.0Rated High
Verification Bypass in jsonwebtokenGHSA-c7hr-j4mj-j2w6before 4.2.2Fixed in 4.2.2Rated Critical

4 listed

Findings

Findings for jsonwebtoken
FindingIdSeverityUpdated
jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify()NMN-2026-0063Severity Moderate3 December 2026
jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMACNMN-2026-0060Severity Moderate3 December 2026
Verification Bypass in jsonwebtokenNMN-2026-0057Severity Critical3 December 2026
jsonwebtoken unrestricted key type could lead to legacy keys usageNMN-2026-0056Severity High3 December 2026

Reviewed 3 December 2026

Sources

  1. npm registry metadata for jsonwebtokenregistry.npmjs.orgRetrieved 3 December 2026
  2. node-jsonwebtoken README (algorithms supported)github.comRetrieved 3 December 2026

Full record

Package
jsonwebtoken
Ecosystem
npm
Role
Protocol
Status
Not marked deprecated by its registry or maintainers.
Reviewed
Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
Advisories read
Last read from OSV 3 December 2026, 16:48 UTC
Findings
4 listed above.

Algorithms it provides

  • HMAC macSymmetricWeakened by Grover's search
  • RSA signatures signatureClassical public keyBroken by Shor's algorithm
  • ECDSA on P-256 signatureClassical public keyBroken by Shor's algorithm
  • ECDSA on P-384 signatureClassical public keyBroken by Shor's algorithm
  • ECDSA on P-521 signatureClassical public keyBroken by Shor's algorithm

What a large quantum computer would change

  • Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.HMAC
  • Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.RSA signatures, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521

Notes describe algorithm families, not any one project.