Skip to main content
← All vulnerabilities
CVE-2025-61920PYSEC-2026-1203GHSA-PQ5P-34CR-23V9

Authlib is vulnerable to Denial of Service via Oversized JOSE Segments

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.6.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • authlib authlib

    fixed in 1.6.5

  • authlibPyPI

    fixed in 1.6.5

References 2

GitHub · authlib/authlib