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.
Use CWE-20, Authlib vendor hub and Authlib product page to widen CVE-2025-61920 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2026-27962, CVE-2026-28490 and CVE-2026-28498 for nearby disclosures in the same product family.