CVE-2026-25537jsonwebtoken has Type Confusion that leads to potential authorization bypass
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rust-jsonwebtoken | Fix pending | UBUNTU-CVE-2026-25537 | |
| Ubuntu 26.04 | rust-jsonwebtoken | Under investigation | UBUNTU-CVE-2026-25537 | |
| Ubuntu 25.10 | rust-jsonwebtoken | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-25537 | |
| Ubuntu 24.04 | rust-jsonwebtoken | Under investigation | UBUNTU-CVE-2026-25537 | |
| Debian 14 | rust-jsonwebtoken | Fix pending | DEBIAN-CVE-2026-25537 | |
| Debian 13 | rust-jsonwebtoken | Fix pending | DEBIAN-CVE-2026-25537 | |
| Debian 12 | rust-jsonwebtoken | Fix pending | DEBIAN-CVE-2026-25537 | |
| crates.io library | jsonwebtoken | Fixed | 10.3.0 | GHSA-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.
- Keats jsonwebtoken: affected: < 10.3.0
References
- https://github.com/Keats/jsonwebtoken/security/advisories/GHSA-h395-gr6q-cpjc
- https://github.com/Keats/jsonwebtoken/commit/abbc3076742c4161347bc6b8bf4aa5eb86e1dc01
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.