CVE-2026-97689 — Vulnerability in urllib3 — CVE Details
urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.44%). Schedule for your next planned update.
Does your project use an affected urllib3 version?
Paste your requirements.txt to check it for CVE-2026-97689 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
urllib3's streaming API is designed for efficiently handling large HTTP responses by reading the content in chunks, rather than loading the entire response body into memory at once. When decoding a chunked-transfer-encoded response, this API reads each chunk's size field by buffering until it sees \n or EOF.
A malicious HTTP server can return Transfer-Encoding: chunked and then send a very long run of bytes without any newline, causing the streaming client to buffer that entire run before urllib3 can reject the chunk size as invalid and allocate more memory than intended.
To fix the issue, we'll reject chunk-size fields larger than 65536 bytes, as already done in the non-streaming case, which is currently handled by the Python standard library. Note that this only applies to reading the chunk-size field, not the chunk data, which is already handled correctly. Thus, there shouldn't be any impact for non-malicious servers.
Affected usages
Applications and libraries using urllib3 versions earlier than 2.8.0 may be affected when streaming a chunked response from untrusted sources. Specifically, this affects the read_chunked() and stream() methods of the HTTPResponse object.
This also affects requests streaming API, which uses urllib3 under the hood.
Remediation
Upgrade to urllib3 version 2.8.0 or later, where chunk-size fields larger than 65536 will be rejected. If upgrading is not immediately possible, consider reading the response at once using the read() method.
Advisory Timeline
- First published September 30, 2026 (57 days ago).
- Last revised October 1, 2026 — 1 day after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "urllib3>=2.8.0"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| urllib3 PyPI · Affected: 1.10.3, 1.10.4, 1.11, 1.12 (+78 more) | 2.8.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-770Allocation of Resources Without LimitsMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
References
- https://github.com/urllib3/urllib3/security/advisories/GHSA-vxq7-64xx-v4gwWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-97689ADVISORY
- https://github.com/urllib3/urllib3/commit/cd770b059b543be29298ea5c52afb0b1b090f5edWEB
- https://github.com/urllib3/urllib3PACKAGE
- https://github.com/urllib3/urllib3/releases/tag/2.8.0WEB
Frequently Asked Questions
- What is CVE-2026-97689?
- urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.0/10).
- How do I check if my project is affected by CVE-2026-97689?
- CVE-2026-97689 affects urllib3. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-97689 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 30.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2023-43804HIGH
- CVE-2026-44432HIGH
- CVE-2025-66471HIGH
urllib3 streaming API improperly handles highly compressed data
- CVE-2026-44431HIGH
urllib3: Sensitive headers forwarded across origins in proxied low-level redirects
- CVE-2023-43804HIGH
`Cookie` HTTP header isn't stripped on cross-origin redirects
- CVE-2023-45803MEDIUM
- CVE-2026-44431MEDIUM
- CVE-2024-37891MEDIUM
urllib3's Proxy-Authorization request header isn't stripped during cross-origin redirects