CVE-2026-25537: Keats jsonwebtoken · Type Confusion
Affects Keats jsonwebtokenSource CVE Database V5
Public exploit available · CVSS 5.5 Medium : upgrade to 10.3.0 as a priority.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 10.3.0
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:PExploitation evidence
Disclosed: evidence found.
CVE published 4 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade jsonwebtoken and github/Keats/jsonwebtoken to 10.3.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Keatsjsonwebtoken | Affected
| Fixed in
|
crates.iogithub/Keats/jsonwebtokenpkg:cargo/github/Keats/jsonwebtokenOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Upgrade all instances of the jsonwebtoken Rust library to version 10.3.0 or later, where the vulnerability is patched.
- Review and update JWT validation configurations to explicitly mark critical claims such as 'nbf' and 'exp' as required in the 'required_spec_claims' list to ensure malformed claims do not bypass validation.
- Implement additional application-level validation for JWT claims to detect and reject tokens with incorrect claim types before they reach the jsonwebtoken library.
- Conduct code audits and dependency scans to identify all usages of vulnerable jsonwebtoken versions across the organization’s codebase and container images.
- Monitor authentication logs for anomalies indicative of token misuse, such as usage outside expected time windows.
- Educate developers on secure JWT handling practices, emphasizing strict claim validation and type checking.
- Employ runtime application self-protection (RASP) or web application firewalls (WAF) with JWT inspection capabilities to detect and block suspicious tokens.
- Establish a patch management process to promptly apply security updates for third-party libraries.
Description
CVE-2026-25537 is a medium severity type confusion vulnerability in the Rust jsonwebtoken library versions prior to 10.3.0. The flaw arises from improper handling of standard JWT claims like 'nbf' or 'exp' when they are provided with incorrect JSON types, causing the library to treat malformed claims as absent. This leads to bypassing critical time-based validations such as 'Not Before' checks, potentially allowing attackers to circumvent authentication and authorization controls. The vulnerability does not require authentication or user interaction and can be exploited remotely. It has been patched in version 10.3.0. European organizations using affected versions of jsonwebtoken in their Rust applications, especially those relying on JWT for security, are at risk.