# CVE-2025-66471: urllib3 Streaming API improperly handles highly compressed data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.9
- **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:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 52, 2026-11-26)
- **CWE:** CWE-409
- **Aliases:** GHSA-2xpw-w6gg-jr37, PYSEC-2026-1994
- **Published:** 2025-12-05T16:06:08.531Z
- **Modified:** 2026-09-25T23:10:00.463Z

## Who should check

- Projects that depend on PyPI package urllib3 (\>= 1.0, \< 2.6.0)
- Anyone running urllib3 \>= 1.0, \< 2.6.0

## 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

- PyPI `urllib3`: affected \>= 1.0, \< 2.6.0; fixed 2.6.0 (osv)
- urllib3: \>= 1.0, \< 2.6.0 (cvelist)

## Mitigation

- Upgrade urllib3 to 2.6.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/urllib3/urllib3/security/advisories/GHSA-2xpw-w6gg-jr37>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-66471>
- vendor: <https://github.com/advisories/GHSA-2xpw-w6gg-jr37>
- patch: <https://github.com/urllib3/urllib3/commit/c19571de34c47de3a766541b041637ba5f716ed7>
- patch: <https://github.com/urllib3/urllib3/commit/d0fde3672e4a4093f7587858dccfc298eb66e46c>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2026-1994.yaml>
- other: <https://github.com/urllib3/urllib3>
- other: <https://pypi.org/project/urllib3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-66471>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2xpw-w6gg-jr37> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1994> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-66471> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-66471>
