CVE-2025-62706
Authlib : JWE zip=DEF decompression bomb enables DoS
Reported by github_m · Published October 22, 2025
authlib is fixed in 1.6.5 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| authlib | PyPI | 1.6.5 |
| authlib | authlib | 1.6.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| authlib | authlib | < 1.6.5 |
| PyPI | authlib | 0 |
| authlib | authlib | 0 |
| wolfi | mlflow | 0 |
| chainguard | mlflow | 0 |
Timeline
- Oct 22, 2025 CVE Published
- Oct 23, 2025 EPSS Score (30 in total, the first dated here)
- Oct 23, 2025 PoC Published
- Mar 3, 2026 CVE Updated
- Mar 9, 2026 Security Advisory (4 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Aug 11, 2026 Distribution Patch (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-62706
vulnetix vdb fixes CVE-2025-62706
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-62706/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/authlib/authlib/security/advisories/GHSA-g7f3-828f-7h7m x_refsource_CONFIRM
- https://github.com/authlib/authlib/commit/e0863d5129316b1790eee5f14cece32a03b8184d x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-62706 advisory
- https://github.com/advisories/GHSA-g7f3-828f-7h7m advisory
- https://github.com/authlib/authlib url
- https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html url