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.
References (3)
Core 3
Core References
Exploit, Mitigation, Vendor Advisory x_refsource_confirm
https://github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9
Patch x_refsource_misc
https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e
Scores
CVSS v3
7.5
EPSS
0.0041
EPSS Percentile
61.6%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-400
CWE-770
CWE-20
Status
published
Products (2)
authlib/authlib
< 1.6.5
pypi/authlib
0 - 1.6.5PyPI
Published
Oct 10, 2025
Tracked Since
Feb 18, 2026