# CVE-2026-97688: urllib3: Chunked Deflate streaming can enter an infinite loop

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- 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.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-09-29T15:32:17.622Z
- Modified: 2026-10-13T20:21:30.583Z
- Also known as: GHSA-gh4c-6fx4-qh6g, PYSEC-2026-4176
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- urllib3 urllib3: >= 2.6.2, < 2.8.0
- urllib3 (PyPI): from 2.6.2 before 2.8.0
- python urllib3: from 2.6.2 before 2.8.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/urllib3/urllib3/security/advisories/GHSA-gh4c-6fx4-qh6g> (mitigation, vendor-advisory, web)
- <https://github.com/urllib3/urllib3/commit/ea2ad7b21a80da3632f80016526a18864586077f> (patch, web)
- <https://github.com/urllib3/urllib3/releases/tag/2.8.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-97688> (advisory)
- <https://github.com/urllib3/urllib3> (package)
- <https://pypi.org/project/urllib3> (package)
- <https://github.com/advisories/GHSA-gh4c-6fx4-qh6g> (advisory)

## Sources

- CVE List: [CVE-2026-97688](https://www.cve.org/CVERecord?id=CVE-2026-97688), CVE Terms of Use, modified 2026-09-29
- GitHub Advisory Database: [GHSA-gh4c-6fx4-qh6g](https://github.com/advisories/GHSA-gh4c-6fx4-qh6g), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-97688](https://nvd.nist.gov/vuln/detail/CVE-2026-97688), Public domain, modified 2026-10-13
- PyPA Advisory Database: [PYSEC-2026-4176](https://osv.dev/vulnerability/PYSEC-2026-4176), CC-BY-4.0, modified 2026-10-01

---

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