# CVE-2025-59420: Authlib: JWS/JWT accepts unknown crit headers (RFC violation → possible authz bypass)

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- 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.29%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-22T14:42:12.000Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-9ggr-2464-2j32, PYSEC-2026-1200
- Weaknesses: CWE-345, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.4, Authlib’s JWS verification accepts tokens that declare unknown critical header parameters (crit), violating RFC 7515 “must‑understand” semantics. An attacker can craft a signed token with a critical header (for example, bork or cnf) that strict verifiers reject but Authlib accepts. In mixed‑language fleets, this enables split‑brain verification and can lead to policy bypass, replay, or privilege escalation. This issue has been patched in version 1.6.4.

(As written by CVE List.)

## Affected

- authlib authlib: < 1.6.4; before 1.6.4
- authlib (PyPI): before 1.6.4

## Every score

- GitHub_M: 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`
- GitHub: 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`
- PyPA Advisory Database: 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/authlib/authlib/security/advisories/GHSA-9ggr-2464-2j32> (exploit, vendor-advisory, web)
- <https://github.com/authlib/authlib/commit/6b1813e4392eb7c168c276099ff7783b176479df> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59420> (advisory)
- <https://github.com/authlib/authlib> (package)
- <https://pypi.org/project/authlib> (package)
- <https://github.com/advisories/GHSA-9ggr-2464-2j32> (advisory)

## Sources

- CVE List: [CVE-2025-59420](https://www.cve.org/CVERecord?id=CVE-2025-59420), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-9ggr-2464-2j32](https://github.com/advisories/GHSA-9ggr-2464-2j32), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-59420](https://nvd.nist.gov/vuln/detail/CVE-2025-59420), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1200](https://osv.dev/vulnerability/PYSEC-2026-1200), CC-BY-4.0, modified 2026-07-07

---

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