Skip to main content

CVE-2026-97689 — Vulnerability in urllib3 — CVE Details

HIGH

urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory

Published September 30, 2026Updated October 1, 2026Source: OSV

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.

Check my requirements.txt

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
Update urllib3 to 2.8.0 or later
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).

PackageFixed 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-770
    Allocation of Resources Without LimitsMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

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

CVSS Score
8.0

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.44%
EPSS percentile: 30.2

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

GHSA-vxq7-64xx-v4gw
PYSEC-2026-4177

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt