IntelligenceFindingsNMN-2026-0060
jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC
CandidateMachine- or researcher-generated; not independently verified.
In short
What to know.
- Package
- jsonwebtoken npmjsonwebtoken: before 9.0.0
- What to do
- Upgrade jsonwebtoken to 9.0.0 or later.
- Severity
- ModerateRated by the source advisory.
- Confidence
- HighThe affected range comes from the advisory; no system that uses the component has been assessed.
Verification
Where it stands.
- Candidate
- In review
- Reproduced
- Confirmed
- Resolved
- Disputed
- Withdrawn
7 listed
Sources
- OSV record GHSA-hjrf-2m68-5959osv.devRetrieved 3 December 2026
- web reference for GHSA-hjrf-2m68-5959github.comRetrieved 3 December 2026
- advisory reference for GHSA-hjrf-2m68-5959nvd.nist.govRetrieved 3 December 2026
- web reference for GHSA-hjrf-2m68-5959github.comRetrieved 3 December 2026
- package reference for GHSA-hjrf-2m68-5959github.comRetrieved 3 December 2026
- web reference for GHSA-hjrf-2m68-5959github.comRetrieved 3 December 2026
- web reference for GHSA-hjrf-2m68-5959security.netapp.comRetrieved 3 December 2026
Full record
- Finding
- NMN-2026-0060
- Category
- vulnerability
- Component
- jsonwebtoken (npm)jsonwebtoken: before 9.0.0
- Severity
- Moderate. Rated by the source advisory.Severity as labelled by the source advisory GHSA-hjrf-2m68-5959. CVSS as given: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L. Noumen has not assessed it.
- Confidence
- High.The affected range comes from the advisory; no system that uses the component has been assessed.
- State
- Candidate. Machine- or researcher-generated; not independently verified.
- Disclosure
- Public
- Mitigation
- Upgrade jsonwebtoken to 9.0.0 or later.
- Discovery method
- imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
- Reproduction
- No reproduction steps recorded.
- Related advisories
- GHSA-hjrf-2m68-5959CVE-2022-23541
- Affected systems
- None listed. A link to a system needs its own evidence.
- Attribution
- Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
- Assigned reviewer
- Nobody yet
- Dates
- Created 3 December 2026, 16:48 UTCUpdated 3 December 2026, 16:48 UTC
Summary, as published by the source advisory
# Overview
Versions `<=8.5.1` of `jsonwebtoken` library can be misconfigured so that passing a poorly implemented key retrieval function (referring to the `secretOrPublicKey` argument from the [readme link](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback)) will result in incorrect verification of tokens. There is a possibility of using a different algorithm and key combination in verification than the one that was used to sign the tokens. Specifically, tokens signed with an asymmetric public key could be verified with a symmetric HS256 algorithm. This can lead to successful validation of forged tokens.
# Am I affected?
You will be affected if your application is supporting usage of both symmetric key and asymmetric key in jwt.verify() implementation with the same key retrieval function.
# How do I fix it?
Update to version 9.0.0.
# Will the fix impact my users?
There is no impact for end users
1 event, oldest first
History
History verified: 1 eventLatest hashec3e84bc056dec3e84bc056d9efa7cc67e3f928b4a1d6f93060b336818b8bb6b1beee74c7970
Record createdMachine-generated
By advisory-monitor@1.0.0 (agent, machine-generated)
Reason: Imported from public advisory GHSA-hjrf-2m68-5959.
Entered the record in the state Candidate.
Event 1 hashec3e84bc056dec3e84bc056d9efa7cc67e3f928b4a1d6f93060b336818b8bb6b1beee74c7970
About this record
Severity and confidence are rated separately, each with its own reason.
History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.
Corrections keep the value before and after.