urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
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.
Affected Packages
| Ecosystem | Package | Vulnerable Versions | Patched Version |
|---|---|---|---|
| pypi |
urllib3
|
>= 1.10.3, < 2.8.0 |
2.8.0
|
Bump urllib3 from 1.26.12 to 2.8.0 in /app
Closed about 15 hours agobuild(deps): bump the pip group across 3 directories with 6 updates
Closed about 18 hours agochore(deps): Bump urllib3 from 2.6.3 to 2.8.0
Closed 1 day agoBump urllib3 from 2.7.0 to 2.8.0
Closed 2 days agobuild(deps): bump the uv group across 1 directory with 2 updates
Open 2 days agoBump the pip group across 1 directory with 6 updates
Closed 4 days agoBump urllib3 from 2.7.0 to 2.8.0
Closed 5 days agoBump the pip group across 5 directories with 5 updates
Open 7 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0
Closed 8 days agochore(deps): Bump the uv group across 1 directory with 9 updates
Closed 11 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0 in the uv group across 1 directory
Closed 12 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0
Open 12 days agofix(deps): bump the uv group across 6 directories with 3 updates
Closed 12 days agochore(deps): bump urllib3 from 2.2.3 to 2.8.0
Open 12 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0
Closed 12 days agoBump the pip group across 1 directory with 4 updates
Closed 13 days agoBump urllib3 from 2.6.3 to 2.8.0
Open 13 days agochore(deps): bump the uv group across 1 directory with 2 updates
Open 15 days agoBump urllib3 from 2.5.0 to 2.8.0
Closed 15 days agoBump urllib3 from 1.26.5 to 2.8.0 in the pip group across 1 directory
Closed 15 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0
Closed 16 days agochore: bump urllib3 from 2.7.0 to 2.8.0
Open 16 days agoBump urllib3 from 2.7.0 to 2.8.0 in /requirements
Closed 16 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0 in /docs
Open 16 days agoBump urllib3 from 2.7.0 to 2.8.0 in /requirements
Open 16 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0 in the uv group across 1 directory
Open 16 days agobuild(deps): bump the pip group across 1 directory with 2 updates
Closed 16 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0 in /workers/classifier in the uv group across 1 directory
Open 16 days agobuild(deps): bump urllib3 from 2.7.0 to 2.8.0 in /apps/vexil-dev-tools/env-init
Open 16 days agobuild(deps): bump the uv group across 1 directory with 2 updates
Open 16 days agobuild(deps): bump urllib3 from 2.6.3 to 2.8.0 in /test/providers/tst_manifests/pyproject/uv_workspace
Open 16 days agoBump the pip group across 1 directory with 7 updates
Open 17 days agobuild(deps): bump urllib3 from 2.4.0 to 2.8.0 in /Library/Homebrew/formula-analytics
Open 17 days agoBump urllib3 from 2.5.0 to 2.8.0 in /fincept-qt/resources
Open 17 days agoBump urllib3 from 2.7.0 to 2.8.0 in the uv group across 1 directory
Open 17 days agoBump urllib3 from 2.7.0 to 2.8.0 in /external_libraries/pybind11/docs
Open 17 days agochore(deps): Bump urllib3 from 2.7.0 to 2.8.0
Closed 17 days agoBump urllib3 from 2.2.2 to 2.8.0 in /WebDriverTests/imported/w3c/tools/wptrunner
Open 18 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0 in /docs in the pip group across 1 directory
Open 18 days agochore(deps)(deps): bump urllib3 from 2.7.0 to 2.8.0
Open 18 days agodeps: bump urllib3 from 2.7.0 to 2.8.0
Open 18 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0
Closed 18 days agobuild(deps): bump urllib3 from 2.7.0 to 2.8.0 in /doc in the pip group across 1 directory
Open 18 days agoBump urllib3 from 2.7.0 to 2.8.0
Closed 18 days agobuild(deps): bump urllib3 from 2.7.0 to 2.8.0 in /backend
Open 18 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0
Closed 18 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0 in /v2_retain
Closed 19 days agoBump urllib3 from 2.7.0 to 2.8.0 in /batch
Closed 19 days agochore(deps): bump urllib3 from 2.7.0 to 2.8.0
Open 19 days agoBump urllib3 from 2.7.0 to 2.8.0
Open 19 days agoActions
Advisory Details
| Published: | September 30, 2026 25 days ago |
| Updated: | October 22, 2026 4 days ago |
| CVSS Score: | 8.9 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 |
| EPSS: | 0.34% 26th percentile |
| Source: | Github |
| Classification: | GENERAL |
| UUID: | GSA_kwCzR0hTQS12eHE3LTY0eHgtdjRnd84AB7Ko |
PR Statistics
References
- https://github.com/urllib3/urllib3/security/advisories/GHSA-vxq7-64xx-v4gw
- https://nvd.nist.gov/vuln/detail/CVE-2026-97689
- https://github.com/urllib3/urllib3/commit/cd770b059b543be29298ea5c52afb0b1b090f5ed
- https://github.com/urllib3/urllib3/releases/tag/2.8.0
- https://github.com/advisories/GHSA-vxq7-64xx-v4gw