High severityNVD Advisory· Published Sep 22, 2025· Updated Nov 3, 2025
Authlib: JWS/JWT accepts unknown crit headers (RFC violation → possible authz bypass)
CVE-2025-59420
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
authlibPyPI | < 1.6.4 | 1.6.4 |
Affected products
20- osv-coords19 versionspkg:apk/chainguard/mlflowpkg:apk/chainguard/mlflow-bitnamipkg:apk/chainguard/mlflow-iamguarded-compatpkg:apk/chainguard/open-webuipkg:apk/chainguard/open-webui-compatpkg:apk/chainguard/pgadmin4pkg:apk/chainguard/pgadmin4-oci-entrypointpkg:apk/chainguard/pgadmin4-pg12pkg:apk/chainguard/pgadmin4-pg13pkg:apk/chainguard/pgadmin4-pg14pkg:apk/chainguard/pgadmin4-pg15pkg:apk/chainguard/pgadmin4-pg16pkg:apk/chainguard/pgadmin4-pg17pkg:apk/wolfi/mlflowpkg:apk/wolfi/mlflow-bitnamipkg:apk/wolfi/mlflow-iamguarded-compatpkg:apk/wolfi/open-webuipkg:apk/wolfi/open-webui-compatpkg:pypi/authlib
< 3.4.0-r1+ 18 more
- (no CPE)range: < 3.4.0-r1
- (no CPE)range: < 3.4.0-r1
- (no CPE)range: < 3.4.0-r1
- (no CPE)range: < 0.6.30-r1
- (no CPE)range: < 0.6.30-r1
- (no CPE)range: < 9.8-r1
- (no CPE)range: < 9.8-r1
- (no CPE)range: < 9.8-r1
- (no CPE)range: < 9.8-r1
- (no CPE)range: < 9.8-r1
- (no CPE)range: < 9.8-r1
- (no CPE)range: < 9.8-r1
- (no CPE)range: < 9.8-r1
- (no CPE)range: < 3.4.0-r1
- (no CPE)range: < 3.4.0-r1
- (no CPE)range: < 3.4.0-r1
- (no CPE)range: < 0.6.30-r1
- (no CPE)range: < 0.6.30-r1
- (no CPE)range: < 1.6.4
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-9ggr-2464-2j32ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-59420ghsaADVISORY
- github.com/authlib/authlib/commit/6b1813e4392eb7c168c276099ff7783b176479dfghsax_refsource_MISCWEB
- github.com/authlib/authlib/security/advisories/GHSA-9ggr-2464-2j32ghsax_refsource_CONFIRMWEB
- lists.debian.org/debian-lts-announce/2025/10/msg00032.htmlghsaWEB
News mentions
0No linked articles in our index yet.