{"id":"CVE-2026-97688","published":"2026-09-29T15:32:17Z","modified":"2026-09-29T15:42:34Z","title":"urllib3: Chunked Deflate streaming can enter an infinite loop","vendor":"urllib3","product":"urllib3","tier":"tail","description":{"text":"urllib3 is an HTTP client library for Python. From 2.6.2 until 2.8.0, HTTPResponse.stream and HTTPResponse.read_chunked can enter an infinite loop because the Deflate decoder retains trailing bytes as unconsumed input after reaching end-of-stream and repeatedly decodes them without progress. The issue occurs when an untrusted server sends a chunked Deflate response whose decoded body exceeds a positive finite chunk size and whose encoded body has trailing bytes, specifically a response with Transfer-Encoding: chunked and Content-Encoding: deflate, content decoding enabled, and the positive finite amt=N streaming chunk size. The attack mechanism is that a malicious server returns a compressed chunked response with trailing bytes after the Deflate stream. The impact is excessive CPU usage and a request that does not complete, and network read timeouts do not interrupt the loop because no further socket read occurs. This issue is fixed in version 2.8.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00292,"percentile":0.22279,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/urllib3/urllib3/security/advisories/GHSA-gh4c-6fx4-qh6g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/urllib3/urllib3/commit/ea2ad7b21a80da3632f80016526a18864586077f","tags":["x_refsource_MISC"]},{"url":"https://github.com/urllib3/urllib3/releases/tag/2.8.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":4.46},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"urllib3","affectedVersions":[{"vendor":"urllib3","product":"urllib3","versions":[">= 2.6.2, < 2.8.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-29T15:42:28.931695Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"urllib3","vulnerableRanges":[">=2.6.2, <2.8.0"],"patched":["2.8.0"],"from":["GHSA-gh4c-6fx4-qh6g","PYSEC-2026-4176"],"provenance":"source"}],"summary":{"text":"The urllib3 Python HTTP client library, in versions from 2.6.2 up to but not including 2.8.0, can enter an infinite loop in the Deflate decoder used by HTTPResponse.stream and HTTPResponse.read_chunked when handling chunked, Deflate-encoded responses with trailing bytes. A remote attacker who controls a server the client connects to can trigger it with no authentication or user interaction by returning such a response while the client has content decoding enabled and uses a positive finite streaming chunk size.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:54Z"},"euvd":{"id":"EUVD-2026-89007","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-urllib3-cve-2025-66471","parents":[{"from":"CVE-2025-66471","to":"CVE-2026-97688","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/urllib3/response.py"],"commits":["https://github.com/urllib3/urllib3/commit/c19571de34c47de3a766541b041637ba5f716ed7","https://github.com/urllib3/urllib3/commit/d0fde3672e4a4093f7587858dccfc298eb66e46c","https://github.com/urllib3/urllib3/commit/ea2ad7b21a80da3632f80016526a18864586077f"],"basis":"shared function","functions":["__init__"]}]}],"packageHistory":[{"cve":"CVE-2026-44431","published":"2026-05-13","fixed":"2.7.0","kev":false},{"cve":"CVE-2026-44432","published":"2026-05-13","fixed":"2.7.0","kev":false,"link":{"from":"CVE-2026-44432","to":"CVE-2026-97688","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:urllib3","fromFixed":"2.7.0","toFixed":"2.8.0","daysApart":139}]}},{"cve":"CVE-2026-97687","published":"2026-09-29","fixed":"2.8.0","kev":false},{"cve":"CVE-2026-97688","published":"2026-09-29","fixed":"2.8.0","kev":false},{"cve":"CVE-2026-97689","published":"2026-09-29","fixed":"2.8.0","kev":false}],"package":"PyPI:urllib3"}}