{"id":"CVE-2025-59420","published":"2025-09-22T17:28:53Z","modified":"2025-11-03T17:45:19Z","title":"Authlib: JWS/JWT accepts unknown crit headers (RFC violation → possible authz bypass)","vendor":"authlib","product":"authlib","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00344,"percentile":0.2033,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"},{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/authlib/authlib/security/advisories/GHSA-9ggr-2464-2j32","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/authlib/authlib/commit/6b1813e4392eb7c168c276099ff7783b176479df","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html","tags":[]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":4.07},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"authlib","affectedVersions":[{"vendor":"authlib","product":"authlib","versions":["< 1.6.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-09-22T18:04:06.580297Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"authlib","vulnerableRanges":["<1.6.4"],"patched":["1.6.4"],"from":["GHSA-9ggr-2464-2j32","PYSEC-2026-1200"],"provenance":"source"}],"summary":{"text":"Authlib's JWS/JWT verification in the Python library Authlib, used to build OAuth and OpenID Connect servers, accepts tokens that declare unknown critical header parameters (crit), contrary to RFC 7515's must-understand requirement. An attacker able to supply a signed token containing an unrecognised critical header, such as one named \"bork\" or \"cnf\", can have it accepted by Authlib even though stricter verifiers would reject it, potentially enabling policy bypass, replay, or privilege escalation in mixed-language deployments.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:05Z"},"euvd":{"id":"EUVD-2025-30790","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-authlib-cve-2025-59420","children":[{"from":"CVE-2025-59420","to":"CVE-2025-61920","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:authlib","fromFixed":"1.6.4","toFixed":"1.6.5","daysApart":18},{"kind":"same-code","provenance":"machine","files":["authlib/jose/rfc7515/jws.py"],"commits":["https://github.com/authlib/authlib/commit/6b1813e4392eb7c168c276099ff7783b176479df","https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e"],"basis":"shared function","functions":["deserialize_compact"]}]},{"from":"CVE-2025-59420","to":"CVE-2026-35042","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-hm7r-c7qw-ghp6","via":"reference","url":"https://github.com/advisories/GHSA-9ggr-2464-2j32"}]}],"packageHistory":[{"cve":"CVE-2024-37568","published":"2024-06-09","fixed":"1.3.1","kev":false,"link":{"from":"CVE-2024-37568","to":"CVE-2025-59420","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:authlib","fromFixed":"1.3.1","toFixed":"1.6.4","daysApart":470}]}},{"cve":"CVE-2025-59420","published":"2025-09-22","fixed":"1.6.4","kev":false},{"cve":"CVE-2025-61920","published":"2025-10-10","fixed":"1.6.5","kev":false},{"cve":"CVE-2025-62706","published":"2025-10-22","fixed":"1.6.5","kev":false,"link":{"from":"CVE-2025-59420","to":"CVE-2025-62706","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:authlib","fromFixed":"1.6.4","toFixed":"1.6.5","daysApart":30}]}},{"cve":"CVE-2025-68158","published":"2026-01-08","fixed":"1.6.6","kev":false}],"package":"PyPI:authlib"}}