Skip to main content
VulnerabilityPublished

CVE-2026-25537: Keats jsonwebtoken · Type Confusion

Affects Keats jsonwebtokenSource CVE Database V5

0

Public exploit available · CVSS 5.5 Medium : upgrade to 10.3.0 as a priority.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 4.0 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
KeatsjsonwebtokenAffected
  • <10.3.0
Fixed in
  • 10.3.0
crates.iogithub/Keats/jsonwebtokenpkg:cargo/github/Keats/jsonwebtokenOther threatsAffected
  • <10.3.0
Fixed in
  • 10.3.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Upgrade all instances of the jsonwebtoken Rust library to version 10.3.0 or later, where the vulnerability is patched.
  2. 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.
  3. Implement additional application-level validation for JWT claims to detect and reject tokens with incorrect claim types before they reach the jsonwebtoken library.
  4. Conduct code audits and dependency scans to identify all usages of vulnerable jsonwebtoken versions across the organization’s codebase and container images.
  5. Monitor authentication logs for anomalies indicative of token misuse, such as usage outside expected time windows.
  6. Educate developers on secure JWT handling practices, emphasizing strict claim validation and type checking.
  7. Employ runtime application self-protection (RASP) or web application firewalls (WAF) with JWT inspection capabilities to detect and block suspicious tokens.
  8. 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.

References

Community reviews

Loading reviews…