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

- Severity: Medium 5.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-03T18:47:40.000Z
- Modified: 2026-09-10T03:50:35.169Z
- Also known as: GHSA-h395-gr6q-cpjc
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Keats jsonwebtoken: < 10.3.0; before 10.3.0
- jsonwebtoken (crates.io): before 10.3.0

## Every score

- GitHub_M: CVSS:4.0 5.5 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/Keats/jsonwebtoken/security/advisories/GHSA-h395-gr6q-cpjc> (exploit, vendor-advisory, web)
- <https://github.com/Keats/jsonwebtoken/commit/abbc3076742c4161347bc6b8bf4aa5eb86e1dc01> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25537> (advisory)
- <https://github.com/Keats/jsonwebtoken> (package)

## Sources

- CVE List: [CVE-2026-25537](https://www.cve.org/CVERecord?id=CVE-2026-25537), CVE Terms of Use, modified 2026-02-05
- GitHub Advisory Database: [GHSA-h395-gr6q-cpjc](https://github.com/advisories/GHSA-h395-gr6q-cpjc), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-25537](https://nvd.nist.gov/vuln/detail/CVE-2026-25537), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25537 · Whole record: https://cve.day/CVE-2026-25537.json · Rebuilt by cve.day 2026-11-25T22:59:13.510Z
