{"id":"CVE-2026-25537","published":"2026-02-04T21:31:53Z","modified":"2026-02-05T20:52:48Z","title":"jsonwebtoken has Type Confusion that leads to potential authorization bypass","vendor":"Keats","product":"jsonwebtoken","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00496,"percentile":0.4347,"provenance":"source"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"references":[{"url":"https://github.com/Keats/jsonwebtoken/security/advisories/GHSA-h395-gr6q-cpjc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Keats/jsonwebtoken/commit/abbc3076742c4161347bc6b8bf4aa5eb86e1dc01","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":8.69},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"keats","affectedVersions":[{"vendor":"Keats","product":"jsonwebtoken","versions":["< 10.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-05T20:52:41.199183Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"jsonwebtoken","vulnerableRanges":["<10.3.0"],"patched":["10.3.0"],"from":["GHSA-h395-gr6q-cpjc"],"provenance":"source"}],"summary":{"text":"The jsonwebtoken Rust library (by Keats) contains a type confusion flaw in its claim validation logic, where a standard claim such as nbf or exp supplied with the wrong JSON type is treated the same as an absent claim and its validation is skipped. An attacker with network access and no authentication or user interaction can submit a token with a malformed time-based claim to bypass checks like validate_nbf when that claim is not listed in required_spec_claims, which can lead to authentication or authorization bypass.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:22Z"},"euvd":{"id":"EUVD-2026-5334","exploited":false,"provenance":"source"}}