Live threats

All CVEs / Authlib

CVE-2025-62706Authlib

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
—
Auth required
Yes
Published
Oct 22, 2025
Updated
Oct 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-770
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Authlib.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
authlibauthlib< 1.6.5

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.