CVE-2025-62706

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-62706
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62706.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-62706
Aliases
Downstream
Published
2025-10-22T21:31:10Z
Modified
2025-10-24T04:21:50.810966Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Authlib : JWE zip=DEF decompression bomb enables DoS
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-400",
        "CWE-770"
    ]
}
References

Affected packages

Git / github.com/authlib/authlib

Affected ranges

Type
GIT
Repo
https://github.com/authlib/authlib
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1
v0.10
v0.11
v0.12
v0.13
v0.14
v0.14.1
v0.14.2
v0.14.3
v0.15
v0.15.1
v0.2
v0.2.1
v0.3
v0.4
v0.4.1
v0.5
v0.5.1
v0.6
v0.7
v0.8
v0.9

v1.*

v1.0.0
v1.0.1
v1.1.0
v1.2.0
v1.2.1
v1.3.0
v1.3.1
v1.3.2
v1.4.0
v1.4.1
v1.5.0
v1.5.1
v1.5.2
v1.6.0
v1.6.1
v1.6.2
v1.6.3
v1.6.4