{"answers":{"affected":"3 open source packages ship an affected version, including authlib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-62706 in the wild and no public exploit code.","fix":"Upgrade authlib to 1.6.5 or later.","what":"CVE-2025-62706 is a medium-severity denial of service vulnerability in authlib, published on 22 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-62706 and fix it if it is affected.\n\nWhat it is: CVE-2025-62706 is a medium-severity denial of service vulnerability in authlib, published on 22 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-62706 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- authlib (PyPI): affected all versions; fixed in 1.6.5\n- authlib (PyPI): affected all versions; fixed in 1.6.5\n- authlib (PyPI): affected all versions; fixed in 1.6.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-62706/ (Markdown: https://insights.sbomify.com/CVE-2025-62706/index.md)","id":"CVE-2025-62706","markdown":"https://insights.sbomify.com/CVE-2025-62706/index.md","name":"CVE-2025-62706","record":{"aliases":["DEBIAN-CVE-2025-62706","ECHO-69d4-5657-6ffb","GHSA-g7f3-828f-7h7m","PYSEC-2026-1202","ROOT-APP-PYPI-CVE-2025-62706","SUSE-SU-2025:3842-1","UBUNTU-CVE-2025-62706"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python OAuth library","requires_auth":"low_privilege","summary":"Attackers can cause denial of service in Authlib by sending small JWE tokens that expand into huge memory usage during decompression.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"authlib","vendor":"authlib"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["PyPI","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Module for Python 3 15 SP7","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Authlib : JWE zip=DEF decompression bomb enables DoS","id":"CVE-2025-62706","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"pypdf affected by possible infinite loop when reading DCT inline images without EOF marker","id":"CVE-2025-62707"},"packages":[{"ecosystem":"PyPI","fixed":["1.6.5"],"introduced":["0"],"last_affected":[],"package":"authlib","purl":null,"source":"GHSA-g7f3-828f-7h7m"},{"ecosystem":"PyPI","fixed":["1.6.5"],"introduced":["0"],"last_affected":[],"package":"authlib","purl":"pkg:pypi/authlib","source":"GHSA-g7f3-828f-7h7m"},{"ecosystem":"PyPI","fixed":["1.6.5"],"introduced":["0"],"last_affected":[],"package":"authlib","purl":"pkg:pypi/authlib","source":"PYSEC-2026-1202"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["1.3.1-150600.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-Authlib","purl":"pkg:rpm/suse/python-Authlib\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2025:3842-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP7","fixed":["1.3.1-150600.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-Authlib","purl":"pkg:rpm/suse/python-Authlib\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP7","source":"SUSE-SU-2025:3842-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.3.1-150600.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-Authlib","purl":"pkg:rpm/opensuse/python-Authlib\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:3842-1"}],"prev":{"headline":"OpenBao and Vault Leak []byte Fields in Audit Logs","id":"CVE-2025-62705"},"products":["authlib"],"published":"2025-10-22","related":[{"cvss_score":9.1,"headline":"Authlib JWS JWK Header Injection: Signature Verification Bypass","id":"CVE-2026-27962","kev_date_added":null,"published":"2026-03-16"},{"cvss_score":8.3,"headline":"Authlib Vulnerable to JWE RSA1_5 Bleichenbacher Padding Oracle","id":"CVE-2026-28490","kev_date_added":null,"published":"2026-03-16"},{"cvss_score":8.2,"headline":"Authlib: Fail-Open Cryptographic Verification in OIDC Hash Binding","id":"CVE-2026-28498","kev_date_added":null,"published":"2026-03-16"},{"cvss_score":7.7,"headline":"Authlib: Setting `alg: none` and a blank signature appears to bypass signature verification","id":"CVE-2026-28802","kev_date_added":null,"published":"2026-03-06"},{"cvss_score":7.5,"headline":"Authlib is vulnerable to Denial of Service via Oversized JOSE Segments","id":"CVE-2025-61920","kev_date_added":null,"published":"2025-10-10"},{"cvss_score":7.5,"headline":"Authlib: JWS/JWT accepts unknown crit headers (RFC violation → possible authz bypass)","id":"CVE-2025-59420","kev_date_added":null,"published":"2025-09-22"},{"cvss_score":7.5,"headline":"Authlib has algorithm confusion with asymmetric public keys","id":"CVE-2024-37568","kev_date_added":null,"published":"2024-06-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["authlib"]},"summary":"Attackers can cause denial of service in Authlib by sending small JWE tokens that expand into huge memory usage during decompression.","url":"https://insights.sbomify.com/CVE-2025-62706/"}