Skip to content

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

MediumCVSS 5.5 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

9 packages: 2 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/rust-jsonwebtoken(Debian 12) = 8.2.0-1; = 8.3.0-1; = 8.3.0-2; = 8.3.0-3 +4 more No fix listed No fix yet
debian/rust-jsonwebtoken(Debian 13) = 8.3.0-5; = 9.3.1-1; All versions No fix listed No fix yet
debian/rust-jsonwebtoken(Debian 14) = 8.3.0-5; = 9.3.1-1; All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
ubuntu/rust-jsonwebtoken(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/rust-jsonwebtoken(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/rust-jsonwebtoken(Ubuntu 26.10) All versions No fix listed No fix yet
crates.io jsonwebtoken(crates.io) < 10.3.0 10.3.0 Fixed
Keats jsonwebtoken < 10.3.0; = < 10.3.0 10.3.0 Fixed

Affected products

ProductAffected versionsFixed in
crates.io jsonwebtoken(crates.io) < 10.3.0 10.3.0
Keats jsonwebtoken = < 10.3.0 No fix listed
debian/rust-jsonwebtoken(Debian:12) All versions No fix listed
debian/rust-jsonwebtoken(Debian:12) = 8.2.0-1 No fix listed
debian/rust-jsonwebtoken(Debian:12) = 8.3.0-1 No fix listed
debian/rust-jsonwebtoken(Debian:12) = 8.3.0-2 No fix listed
debian/rust-jsonwebtoken(Debian:12) = 8.3.0-3 No fix listed
debian/rust-jsonwebtoken(Debian:12) = 8.3.0-4 No fix listed
debian/rust-jsonwebtoken(Debian:12) = 8.3.0-5 No fix listed
debian/rust-jsonwebtoken(Debian:12) = 9.3.1-1 No fix listed
debian/rust-jsonwebtoken(Debian:13) All versions No fix listed
debian/rust-jsonwebtoken(Debian:13) = 8.3.0-5 No fix listed
debian/rust-jsonwebtoken(Debian:13) = 9.3.1-1 No fix listed
debian/rust-jsonwebtoken(Debian:14) All versions No fix listed
debian/rust-jsonwebtoken(Debian:14) = 8.3.0-5 No fix listed
debian/rust-jsonwebtoken(Debian:14) = 9.3.1-1 No fix listed
redhat/build-of-trustee/trustee-rhel9(Red Hat:confidential_compute_attestation:1) All versions No fix listed
redhat/confidential-compute-attestation-tech-preview/trustee-rhel9(Red Hat:confidential_compute_attestation:1) All versions No fix listed
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/rhoai/odh-model-registry-job-async-upload-rhel9(Red Hat:openshift_ai) All versions No fix listed
ubuntu/rust-jsonwebtoken(Ubuntu:24.04) All versions No fix listed
ubuntu/rust-jsonwebtoken(Ubuntu:26.04) All versions No fix listed
ubuntu/rust-jsonwebtoken(Ubuntu:26.10) All versions No fix listed
Keats jsonwebtoken < 10.3.0 10.3.0

References