CVE-2026-25537 Details
Description
jsonwebtoken is a JWT lib in rust. Prior to version 10.3.0, there is a Type Confusion vulnerability in jsonwebtoken, specifically, in its claim validation logic. When a standard claim (such as nbf or exp) is provided with an incorrect JSON type (Like a String instead of a Number), the library’s internal parsing mechanism marks the claim as “FailedToParse”. Crucially, the validation logic treats this “FailedToParse” state identically to “NotPresent”. This means that if a check is enabled (like: validate_nbf = true), but the claim is not explicitly marked as required in required_spec_claims, the library will skip the validation check entirely for the malformed claim, treating it as if it were not there. This allows attackers to bypass critical time-based security restrictions (like “Not Before” checks) and commit potential authentication and authorization bypasses. This issue has been patched in version 10.3.0.
A type confusion vulnerability has been identified in the jsonwebtoken library for Rust, prior to version 10.3.0. The issue arises in the claim validation logic, where standard claims like 'nbf' or 'exp' can be provided with incorrect JSON types, such as strings instead of numbers. This misalignment causes the library's parsing mechanism to mark the claim as 'FailedToParse'. The validation logic then treats this 'FailedToParse' state the same as 'NotPresent', creating a loophole. If a validation check is enabled for a claim, but the claim is not explicitly marked as required, the library will skip the validation for the malformed claim. This flaw allows attackers to bypass important time-based security checks, such as 'Not Before' validations, potentially leading to unauthorized access or actions.
Users can upgrade to jsonwebtoken version 10.3.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Keats/jsonwebtoken/security/advisories/GHSA-h395-gr6q-cpjc | CISA-ADP | ExploitVendor Advisory |
| https://github.com/Keats/jsonwebtoken/commit/abbc3076742c4161347bc6b8bf4aa5eb86e1dc01 | [email protected] | Patch |
| https://github.com/Keats/jsonwebtoken/security/advisories/GHSA-h395-gr6q-cpjc | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-843 | Access of Resource Using Incompatible Type ('Type Confusion') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| keats jsonwebtoken | < 10.3.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 11, 2026 | Initial Analysis | [email protected] |
| Feb 5, 2026 | CVE Modified | CISA-ADP |
| Feb 4, 2026 | New CVE Received | [email protected] |