CVE-2025-66471 Details
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.
A vulnerability exists in urllib3, a popular HTTP client library for Python, in versions 1.0 through 2.5.0. The issue arises in the streaming API, which improperly manages highly compressed data. This can lead to excessive resource consumption, including high CPU usage and significant memory allocation, as the library may fully decompress small amounts of highly compressed data in a single operation. The vulnerability is particularly concerning when streaming large or unknown-length responses from untrusted sources, as it can be exploited to create a 'decompression bomb' effect, where a small amount of compressed data expands into a much larger size, consuming resources and potentially leading to denial-of-service conditions.
Users should upgrade to urllib3 version 2.6.0 or later. If Brotli encoding is used, ensure that the Brotli package is updated to version 1.2.0 or later. These updates are included in the 'urllib3[brotli]' extra in the patched versions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 5, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-409 | Improper Handling of Highly Compressed Data (Data Amplification) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python urllib3 | >= 1.0, < 2.6.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 25, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 10, 2025 | Initial Analysis | [email protected] |
| Dec 5, 2025 | New CVE Received | [email protected] |