CVE-2026-25537
published medium CVSS 4.0 · 5.5jsonwebtoken has Type Confusion that leads to potential authorization bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Keats | — | jsonwebtoken< 10.3.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Keats | jsonwebtoken | < 10.3.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-843 CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
References
2Provider assertions
2GitHub_M · cna
jsonwebtoken has Type Confusion that leads to potential authorization bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e076d64a955aae23fc3006233c3810c717d7be56ee2038ce6814ae093b878bc0
- Ingested
- 23 Sep 2026, 09:06:52 UTC
- Source record
- Official CVE record