CVE-2026-21441 — Vulnerability in urllib3 — CVE Details
Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.90%). Schedule for your next planned update.
Does your project use an affected urllib3 version?
Paste your requirements.txt to check it for CVE-2026-21441 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
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.
urllib3 can perform decoding or decompression based on the HTTP Content-Encoding header (e.g., gzip, deflate, br, or zstd). When using the streaming API, the library decompresses only the necessary bytes, enabling partial content consumption.
However, for HTTP redirect responses, the library would read the entire response body to drain the connection and decompress the content unnecessarily. This decompression occurred even before any read methods were called, and configured read limits did not restrict the amount of decompressed data. As a result, there was no safeguard against decompression bombs. A malicious server could exploit this to trigger excessive resource consumption on the client (high CPU usage and large memory allocations for decompressed data; CWE-409).
Affected usages
Applications and libraries using urllib3 version 2.6.2 and earlier to stream content from untrusted sources by setting preload_content=False when they do not disable redirects.
Remediation
Upgrade to at least urllib3 v2.6.3 in which the library does not decode content of redirect responses when preload_content=False.
If upgrading is not immediately possible, disable redirects by setting redirect=False for requests to untrusted source.
Advisory Timeline
- First published January 7, 2026 (323 days ago).
- Last revised September 10, 2026 — 245 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "urllib3>=2.6.3"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| urllib3 PyPI · Affected: 1.22, 1.23, 1.24, 1.24.1 (+58 more) | 2.6.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-409
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/urllib3/urllib3/security/advisories/GHSA-38jv-5279-wg99WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-21441ADVISORY
- https://github.com/urllib3/urllib3/commit/8864ac407bba8607950025e0979c4c69bc7abc7bWEB
- https://github.com/urllib3/urllib3PACKAGE
- https://lists.debian.org/debian-lts-announce/2026/01/msg00017.htmlWEB
Frequently Asked Questions
- What is CVE-2026-21441?
- Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API). This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-21441?
- CVE-2026-21441 affects urllib3. It has a 3.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-21441 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 10% of EPSS-scored vulnerabilities — 91% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2025-66471HIGH
urllib3 streaming API improperly handles highly compressed data
- CVE-2026-97687HIGH
urllib3: HTTPS proxy TLS configuration may be ignored or overridden
- CVE-2025-66418HIGH
urllib3 allows an unbounded number of links in the decompression chain
- CVE-2026-44432HIGH
urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API
- CVE-2024-37891MEDIUM
urllib3's Proxy-Authorization request header isn't stripped during cross-origin redirects
- CVE-2023-45803MEDIUM
urllib3's request body not stripped after redirect from 303 status changes request method to GET
- CVE-2026-97688MEDIUM
urllib3: Chunked Deflate streaming can enter an infinite loop
- CVE-2025-50181MEDIUM
urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation