CVE-2025-66471

High

Description

urllib3 is a user-friendly HTTP client library for Python. Starting in version 1.0 and prior to 2.6.0, the Streaming API improperly handles highly compressed data. urllib3's streaming API is designed for the efficient handling of large HTTP responses by reading the content in chunks, rather than loading the entire response body into memory at once. When streaming a compressed response, urllib3 can perform decoding or decompression based on the HTTP Content-Encoding header (e.g., gzip, deflate, br, or zstd). The library must read compressed data from the network and decompress it until the requested chunk size is met. Any resulting decompressed data that exceeds the requested amount is held in an internal buffer for the next read operation. The decompression logic could cause urllib3 to fully decode a small amount of highly compressed data in a single operation. This can result in excessive resource consumption (high CPU usage and massive memory allocation for the decompressed data.

SeverityHigh
CVSS7.5
Exploit probability—
ProductPython Urllib3
PublishedDec 5, 2025
First seenDec 5, 2025
Weakness typeCWE-409CWE-409

How to fix

Update
  • python urllib32.6.0 or later
  • urllib32.6.0 or later

Affected products

ProductAffected versionsFixed in
python urllib31.0 ≤ v < 2.6.02.6.0
urllib3PyPI1.0 ≤ v < 2.6.02.6.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.