Resource exhaustion in Authlib
CVE-2025-61920
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.006 (48.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 49th percentile — 48.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.006 · change: +0.000
Affected products
- Authlib — versions < 1.6.5
Weakness classification (CWE)
References
- github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9 (Exploit, Mitigation, Vendor Advisory)
- github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e (Patch)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2025-61920?
- CVE-2025-61920 is a high-severity vulnerability in Authlib, classified under Improper Input Validation. CVSS score: 7.5/10. Published 2025-10-10.
- How severe is CVE-2025-61920?
- High severity. CVSS v3 base score is 7.5 out of 10.