CVE-2025-62706Authlib
Medium 6.5
Follow: this CVE · Authlib · Authlib We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- Yes
- Published
- Oct 22, 2025
- Updated
- Oct 19, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
What happens
Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JWE zip=DEF path performs unbounded DEFLATE decompression. A very small ciphertext can expand into tens or hundreds of megabytes on decrypt, allowing an attacker who can supply decryptable tokens to exhaust memory and CPU and cause denial of service. This issue has been patched in version 1.6.5. Workarounds for this issue involve rejecting or stripping zip=DEF for inbound JWEs at the application boundary, forking and add a bounded decompression guard via decompressobj().decompress(data, MAX_SIZE)) and returning an error when output exceeds a safe limit, or enforcing strict maximum token sizes and fail fast on oversized inputs; combine with rate limiting.
What to do
- Apply the vendor's security update for Authlib.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | authlib |
< 1.6.5 |
1.6.5 |
pip install "authlib>=1.6.5" |
| PyPI | authlib |
< 1.6.5 |
1.6.5 |
pip install "authlib>=1.6.5" |
Per OSV / GitHub Advisories (GHSA-g7f3-828f-7h7m, PYSEC-2026-1202). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| authlib | authlib | < 1.6.5 |
Official advisories
- python313-Authlib-1.9.1-1.1 on GA media · SUSE · openSUSE-SU-2026:12390-1 · Nov 2, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Mitigation Third Party Advisory
- lists.debian.org