CVE-2025-61920 Details
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.
A denial-of-service vulnerability has been identified in Authlib, a Python library for building OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib's JOSE implementation allowed unbounded JWS/JWT header and signature segments. This flaw enabled remote attackers to craft tokens with base64url-encoded headers or signatures that could exceed hundreds of megabytes. During the verification process, Authlib would decode and parse the entire input before rejecting it, leading to excessive CPU and memory usage. On a test host, verifying a 500 MB header consumed approximately 4 GB of RAM and 9 seconds of CPU time before failing, demonstrating the vulnerability's potential to exhaust server resources and disrupt service.
Users are advised to update Authlib to version 1.6.5 or later, where this vulnerability has been patched. The patched version includes size limitations that prevent denial-of-service exploitation by rejecting JWS/JWT inputs that exceed 256 KB for headers and signatures. For additional defense, consider implementing rate limits on verification endpoints and rejecting oversized JWS/JWT inputs at the proxy or web application firewall layer.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| authlib authlib | < 1.6.5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 20, 2025 | Initial Analysis | [email protected] |
| Oct 10, 2025 | New CVE Received | [email protected] |