GHSA-vxq7-64xx-v4gw: Pip/urllib3 vulnerability

Published Sep 30, 2026
·
Updated

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 readchunked() 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 Software

1 affected componentFixes available
pip/urllib3>=1.10.3<2.8.0
2.8.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/urllib3 to a version that resolves this vulnerability.

    Fixed in 2.8.0
  2. Upgrade

    Upgrade urllib3 to a version that resolves this vulnerability.

    Fixed in 2.8.0
  3. Compensating control

    If upgrading is not immediately possible, read the chunked response at once using the read() method instead of streaming it.

Event History

Sep 30, 2026
Advisory Published
via GitHub·02:46 PM
Data Sourced
via GitHub·02:46 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which applications are exposed?

Applications and libraries using urllib3 versions earlier than 2.8.0 may be affected if they use urllib3's streaming API to read responses from an HTTP server that may be malicious.

2

What does an attacker need to do to trigger the issue?

The attacker needs to control or impersonate an HTTP server contacted by the streaming client. The server sends a chunked response with an excessively long chunk-size field that contains no newline, causing urllib3 to buffer the field before rejecting it.

3

How can the issue be remediated?

Upgrade urllib3 to version 2.8.0 or later. The fix rejects chunk-size fields larger than 65,536 bytes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203