CVEfocus › CVE database › CVE-2026-25537

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

CVSS 5.5 MediumEPSS 0.6% (higher than 45% of CVEs)Published 2026-02-04Updated 2026-02-05Assigner: GitHub_M

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.

CWE-843

What to do

Fixed builds are available from crates.io: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
4Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-jsonwebtokenFix pendingUBUNTU-CVE-2026-25537
Ubuntu 26.04rust-jsonwebtokenUnder investigationUBUNTU-CVE-2026-25537
Ubuntu 25.10rust-jsonwebtokenWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-25537
Ubuntu 24.04rust-jsonwebtokenUnder investigationUBUNTU-CVE-2026-25537
Debian 14rust-jsonwebtokenFix pendingDEBIAN-CVE-2026-25537
Debian 13rust-jsonwebtokenFix pendingDEBIAN-CVE-2026-25537
Debian 12rust-jsonwebtokenFix pendingDEBIAN-CVE-2026-25537
crates.io libraryjsonwebtokenFixed10.3.0GHSA-h395-gr6q-cpjc

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.