Vulnerability · Published Feb 4, 2026 · Assigned by GitHub_M

CVE-2026-25537jsonwebtoken has Type Confusion that leads to potential authorization bypass

Medium 5.5

In plain English

A medium-severity type confusion in jsonwebtoken from Keats. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities).

Severity (CVSS 4.0)5.5Medium
Exploit odds (30 days)0.5%top 57.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rust-jsonwebtokenno fix listedDEBIAN-CVE-2026-25537
Debian:13rust-jsonwebtokenno fix listedDEBIAN-CVE-2026-25537
Debian:14rust-jsonwebtokenno fix listedDEBIAN-CVE-2026-25537
Ubuntu:24.04:LTSrust-jsonwebtokenno fix listedUBUNTU-CVE-2026-25537
Ubuntu:25.10rust-jsonwebtokenno fix listedUBUNTU-CVE-2026-25537
Ubuntu:26.04:LTSrust-jsonwebtokenno fix listedUBUNTU-CVE-2026-25537
Ubuntu:26.10rust-jsonwebtokenno fix listedUBUNTU-CVE-2026-25537

Affected products (as reported)

VendorProductVersions
Keats jsonwebtoken < 10.3.0

Weakness: CWE-843 · Vector: 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

References