CVE-2025-59420
Authlib vulnerability
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 products
Authlib. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Authlib runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/authlib/authlib/security/advisories/GHSA-9ggr-2464-2j32
- github.com/authlib/authlib/commit/6b1813e4392eb7c168c276099ff7783b176479df
- nvd.nist.gov/vuln/detail/CVE-2025-59420
- lists.debian.org/debian-lts-announce/2025/10/msg00032.html
- github.com/advisories/GHSA-9ggr-2464-2j32
- nvd.nist.gov/vuln/detail/CVE-2025-59420
- cve.org/CVERecord?id=CVE-2025-59420
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.