# CVE-2025-62706: Authlib : JWE zip=DEF decompression bomb enables DoS

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 52% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-10T22:54:03.000Z
- Modified: 2026-10-19T13:10:00.110Z
- Also known as: GHSA-g7f3-828f-7h7m, PYSEC-2026-1202
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- authlib authlib: < 1.6.5; before 1.6.5
- authlib (PyPI): before 1.6.5

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/authlib/authlib/security/advisories/GHSA-g7f3-828f-7h7m> (exploit, mitigation, third-party-advisory, web)
- <https://github.com/authlib/authlib/commit/e0863d5129316b1790eee5f14cece32a03b8184d> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62706> (advisory)
- <https://github.com/authlib/authlib> (package)
- <https://pypi.org/project/authlib> (package)
- <https://github.com/advisories/GHSA-g7f3-828f-7h7m> (advisory)

## Sources

- CVE List: [CVE-2025-62706](https://www.cve.org/CVERecord?id=CVE-2025-62706), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-g7f3-828f-7h7m](https://github.com/advisories/GHSA-g7f3-828f-7h7m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-62706](https://nvd.nist.gov/vuln/detail/CVE-2025-62706), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1202](https://osv.dev/vulnerability/PYSEC-2026-1202), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-62706 · Whole record: https://cve.day/CVE-2025-62706.json · Rebuilt by cve.day 2026-11-25T22:59:06.727Z
