CVE-2026-25537: jsonwebtoken - Authentication Bypass
- Cve: CVE-2026-25537
- Name: jsonwebtoken - Authentication Bypass
- 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.
- Impact: Attackers can bypass critical time-based security checks, leading to authentication and authorization bypass.
- Remediation: Update to version 10.3.0 or later.
- Vulnerability type: broken_authentication
- Vulnerability impact: broken_authentication
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00496
- Epss percentile: 0.4341
- Assignee: [email protected]
- Published at: 2026-02-04T22:15:59Z
- Age in days: 293
- Modified at: 2026-06-17T10:24:48Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-25537
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-843 | Access of Resource Using Incompatible Type |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Keats/jsonwebtoken/security/advisories/GHSA-h395-gr6q-cpjc | nvd | 2026-02-04 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/Keats/jsonwebtoken/commit/abbc3076742c4161347bc6b8bf4aa5eb86e1dc01 | nvd | Patch |
| https://github.com/Keats/jsonwebtoken/security/advisories/GHSA-h395-gr6q-cpjc | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| keats:jsonwebtoken | < 10.3.0 | no | nvd | /v1/products/keats/jsonwebtoken |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keats/jsonwebtoken | commit, package, security_advisory | yes | /v1/repositories/keats/jsonwebtoken |
Index
- Repositories: 108
- Repositories high signal: 90
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-02-04
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts