Vulnerability · Published Sep 22, 2025 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity insufficient verification of data authenticity in authlib from authlib. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.3%top 80.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-authlib1.2.0-1+deb12u1DEBIAN-CVE-2025-59420
Debian:13python-authlib1.6.0-1+deb13u1DEBIAN-CVE-2025-59420
Debian:14python-authlib1.6.4-1DEBIAN-CVE-2025-59420
PyPIauthlib1.6.4PYSEC-2026-1200
PyPIauthlib1.6.4GHSA-9ggr-2464-2j32
Ubuntu:25.10python-authlibno fix listedUBUNTU-CVE-2025-59420
Ubuntu:26.10python-authlibno fix listedUBUNTU-CVE-2025-59420

Affected products (as reported)

VendorProductVersions
authlib authlib < 1.6.4

Weakness: CWE-345, CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References