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

Published Oct 22, 2025
·
Updated

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, MAXSIZE)) 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.

Affected Software

2 affected components
Authlib Authlib<1.6.5
Authlib Authlib<1.6.5

Event History

Oct 22, 2025
CVE Published
via MITRE·09:31 PM
Data Sourced
via MITRE·09:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-62706?

CVE-2025-62706 has a high severity due to its unbounded DEFLATE decompression vulnerability.

2

How do I fix CVE-2025-62706?

To fix CVE-2025-62706, upgrade Authlib to version 1.6.5 or later.

3

What specific vulnerability does CVE-2025-62706 describe?

CVE-2025-62706 describes an unbounded DEFLATE decompression issue in Authlib's JWE zip=DEF path.

4

Which versions of Authlib are affected by CVE-2025-62706?

Versions of Authlib prior to 1.6.5 are affected by CVE-2025-62706.

5

What potential risk does CVE-2025-62706 pose?

CVE-2025-62706 poses a risk of denial-of-service due to excessive resource consumption from data expansion during decryption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203