Skip to main content

CVE-2026-21441 — Vulnerability in urllib3 — CVE Details

HIGH

Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)

Published January 7, 2026Updated September 10, 2026Source: OSV

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.

Check my requirements.txt

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
Update urllib3 to 2.6.3 or later
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).

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

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
3.90%
EPSS percentile: 91

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

GHSA-38jv-5279-wg99
PYSEC-2026-1996

Related CVEs

  • CVE-2025-66471
    HIGH

    urllib3 streaming API improperly handles highly compressed data

  • CVE-2026-97687
    HIGH

    urllib3: HTTPS proxy TLS configuration may be ignored or overridden

  • CVE-2025-66418
    HIGH

    urllib3 allows an unbounded number of links in the decompression chain

  • CVE-2026-44432
    HIGH

    urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API

  • CVE-2024-37891
    MEDIUM

    urllib3's Proxy-Authorization request header isn't stripped during cross-origin redirects

  • CVE-2023-45803
    MEDIUM

    urllib3's request body not stripped after redirect from 303 status changes request method to GET

  • CVE-2026-97688
    MEDIUM

    urllib3: Chunked Deflate streaming can enter an infinite loop

  • CVE-2025-50181
    MEDIUM

    urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt