jsonwebtoken has Type Confusion that leads to potential authorization bypass
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Keats | jsonwebtoken | before 10.3.0 | 10.3.0 | Patch available | CNA |
| — | jsonwebtoken (crates.io) | before 10.3.0 | 10.3.0 | Patch available | GHSA-h395-gr6q-cpjc |
- jsonwebtoken VendorKeats Affected before 10.3.0 Fixed in 10.3.0 Patch available CNA
- jsonwebtoken (crates.io) Vendor— Affected before 10.3.0 Fixed in 10.3.0 Patch available GHSA-h395-gr6q-cpjc
Remediation
- Fix · CNA jsonwebtoken (Keats) Fixed in 10.3.0
- Fix · GHSA-h395-gr6q-cpjc jsonwebtoken (crates.io) Fixed in 10.3.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Confidential Compute Attestation | Affected | No fix planned: Out of support scope |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix planned: Out of support scope |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-25537
- 2026-10-03 Alias added: GHSA-h395-gr6q-cpjc
References
Sources
- CVE-2026-25537 · CVE Program
- CVE-2026-25537 · NVD
- FIRST EPSS
- GHSA-h395-gr6q-cpjc · GitHub Advisory Database · CC BY 4.0
- CVE-2026-25537 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences