CVE-2026-35039: CWE-345: Insufficient Verification of Data Authenticity in nearform fast-jwt
fast-jwt provides fast JSON Web Token (JWT) implementation. From 0.0.1 to before 6.1.0, setting up a custom cacheKeyBuilder method which does not properly create unique keys for different tokens can lead to cache collisions. This could cause tokens to be mis-identified during the verification process leading to valid tokens returning claims from different valid tokens and users being mis-identified as other users based on the wrong token.
AI Analysis
Technical Summary
The fast-jwt library, used for JSON Web Token implementation, is vulnerable in versions >= 0.0.1 and < 6.1.0 due to improper uniqueness in the cacheKeyBuilder method. When this method does not create unique keys for different tokens, cache collisions occur, causing the verification process to associate a token with claims from a different valid token. This flaw results in incorrect user identification and violates token authenticity verification, corresponding to CWE-345 and related weaknesses.
Potential Impact
Exploitation of this vulnerability can cause a valid JWT to be mis-associated with claims from another token, leading to users being mis-identified as other users. This compromises confidentiality and integrity of authentication and authorization processes, potentially allowing unauthorized access to user data or actions under another user's identity. The CVSS score of 9.1 indicates a critical impact on confidentiality and integrity without requiring privileges or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid using custom cacheKeyBuilder implementations that do not guarantee unique keys per token. Review and update token verification logic to ensure uniqueness and correctness of cache keys to prevent collisions.
CVE-2026-35039: CWE-345: Insufficient Verification of Data Authenticity in nearform fast-jwt
Description
fast-jwt provides fast JSON Web Token (JWT) implementation. From 0.0.1 to before 6.1.0, setting up a custom cacheKeyBuilder method which does not properly create unique keys for different tokens can lead to cache collisions. This could cause tokens to be mis-identified during the verification process leading to valid tokens returning claims from different valid tokens and users being mis-identified as other users based on the wrong token.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The fast-jwt library, used for JSON Web Token implementation, is vulnerable in versions >= 0.0.1 and < 6.1.0 due to improper uniqueness in the cacheKeyBuilder method. When this method does not create unique keys for different tokens, cache collisions occur, causing the verification process to associate a token with claims from a different valid token. This flaw results in incorrect user identification and violates token authenticity verification, corresponding to CWE-345 and related weaknesses.
Potential Impact
Exploitation of this vulnerability can cause a valid JWT to be mis-associated with claims from another token, leading to users being mis-identified as other users. This compromises confidentiality and integrity of authentication and authorization processes, potentially allowing unauthorized access to user data or actions under another user's identity. The CVSS score of 9.1 indicates a critical impact on confidentiality and integrity without requiring privileges or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid using custom cacheKeyBuilder implementations that do not guarantee unique keys per token. Review and update token verification logic to ensure uniqueness and correctness of cache keys to prevent collisions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-31T21:06:06.428Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d3ea320a160ebd92c9fd8d
Added to database: 4/6/2026, 5:15:30 PM
Last enriched: 4/6/2026, 5:30:46 PM
Last updated: 4/7/2026, 5:44:00 AM
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.