Authlib is vulnerable to Denial of Service via Oversized JOSE Segments
Description
Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service. Version 1.6.5 patches the issue. Some temporary workarounds are available. Enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.
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.5 | 1.6.5 |
Affected products
12- osv-coords11 versionspkg:apk/chainguard/mlflowpkg:apk/chainguard/mlflow-bitnamipkg:apk/chainguard/mlflow-iamguarded-compatpkg:apk/wolfi/mlflowpkg:apk/wolfi/mlflow-bitnamipkg:apk/wolfi/mlflow-iamguarded-compatpkg:pypi/authlibpkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-Authlib&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6pkg:rpm/suse/python-Authlib&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP7
< 3.4.0-r2+ 10 more
- (no CPE)range: < 3.4.0-r2
- (no CPE)range: < 3.4.0-r2
- (no CPE)range: < 3.4.0-r2
- (no CPE)range: < 3.4.0-r2
- (no CPE)range: < 3.4.0-r2
- (no CPE)range: < 3.4.0-r2
- (no CPE)range: < 1.6.5
- (no CPE)range: < 1.3.1-150600.3.6.1
- (no CPE)range: < 1.6.5-1.1
- (no CPE)range: < 1.3.1-150600.3.6.1
- (no CPE)range: < 1.3.1-150600.3.6.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-pq5p-34cr-23v9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-61920ghsaADVISORY
- github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5eghsax_refsource_MISCWEB
- github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9ghsax_refsource_CONFIRMWEB
- lists.debian.org/debian-lts-announce/2025/10/msg00032.htmlghsaWEB
News mentions
0No linked articles in our index yet.