CVE-2025-66471
urllib3 Streaming API improperly handles highly compressed data
Also known as GHSA-2xpw-w6gg-jr37, PYSEC-2026-1994
Mitigation
- Upgrade urllib3 to 2.6.0 or later.
Who should check
- Projects that depend on PyPI package urllib3 (>= 1.0, < 2.6.0)
- Anyone running urllib3 >= 1.0, < 2.6.0
Vulnerability facts
- Affected
- urllib3 >= 1.0, < 2.6.0
- Fixed in
- 2.6.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: High
- EPSS
- 0.76% chance of exploitation in 30 days (percentile 52, 2026-11-26)
- CWE
- CWE-409
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-66471. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-66471.md Affected: urllib3 >= 1.0, < 2.6.0 Fixed in: 2.6.0 Steps: 1. Search this machine and project for urllib3 (PyPI), urllib3: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2025-66471 being exploited?
There is no confirmed exploitation: CVE-2025-66471 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-66471?
High: CVSS 8.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-66471?
urllib3 >= 1.0, < 2.6.0.
Is there a fix for CVE-2025-66471?
Yes. Fixed in 2.6.0. Upgrade urllib3 to 2.6.0 or later.
How do I check if I'm affected by CVE-2025-66471?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.