Cyber Resilience

CVE-2026-21441

HighUpdated

Published: 07 January 2026

Published
07 January 2026
Modified
30 June 2026
KEV Added
Patch
CVSS Score v4 8.9 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0068 47.8th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2026-21441 is a high-severity Data Amplification (CWE-409) vulnerability in Python Urllib3. Its CVSS base score is 8.9 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Application or System Exploitation (T1499.004); ranked at the 47.8th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 SI-2 (Flaw Remediation) and CM-6 (Configuration Settings).

Deeper analysis

CVE-2026-21441 affects urllib3, an HTTP client library for Python, in versions starting from 1.22 and prior to 2.6.3. The vulnerability arises in the library's streaming API, which is used for efficient handling of large HTTP responses by reading content in chunks with `preload_content=False`. For HTTP redirect responses, urllib3 reads and decompresses the entire response body to drain the connection, even before any read methods are called and regardless of configured read limits. This behavior enables decompression bombs, as there are no safeguards against maliciously crafted compressed content (e.g., via `gzip`, `deflate`, `br`, or `zstd` encodings indicated by the `Content-Encoding` header), leading to excessive resource consumption on the client.

Any remote attacker controlling an untrusted HTTP server can exploit this vulnerability by serving a redirect response with a highly compressible payload that expands dramatically during decompression. Client applications or libraries using urllib3's streaming mode without disabling redirects are vulnerable when fetching content from such servers. Successful exploitation results in denial-of-service via resource exhaustion, with a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), stemming from CWE-409 (Improper Handling of Highly Compressed Data).

Advisories recommend upgrading to urllib3 version 2.6.3 or later, where the library no longer decodes content in redirect responses when `preload_content=False`. As an interim mitigation, disable redirects by setting `redirect=False` for requests to untrusted sources. Relevant resources include the urllib3 security advisory (GHSA-38jv-5279-wg99), the fixing commit (8864ac407bba8607950025e0979c4c69bc7abc7b), and Debian LTS announcements.

EU & UK References

Vulnerability details

urllib3 is an HTTP client library for Python. 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…

more

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. Starting in version 1.22 and prior to version 2.6.3, 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. Applications and libraries are affected when they stream content from untrusted sources by setting `preload_content=False` when they do not disable redirects. Users should 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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
Why these techniques?

Decompression bomb in urllib3 streaming redirects directly enables application exhaustion DoS via crafted server responses.

Confidence: MEDIUM · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2026-44432Same product: Python Urllib3
CVE-2026-22870Shared CWE-409
CVE-2026-40192Same vendor: Python
CVE-2026-43970Shared CWE-409
CVE-2026-22776Shared CWE-409
CVE-2026-1526Shared CWE-409
CVE-2024-7765Shared CWE-409
CVE-2026-32274Same vendor: Python
CVE-2026-25990Same vendor: Python
CVE-2026-28435Shared CWE-409

Affected Assets

python
urllib3
1.22 — 2.6.3

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly remediates the vulnerability by requiring timely upgrades to urllib3 v2.6.3 or later, eliminating unnecessary decompression of redirect responses in streaming mode.

prevent

Enforces secure configuration settings for HTTP client libraries like urllib3, such as disabling redirects (redirect=False) for untrusted sources to prevent exploitation.

prevent

Provides denial-of-service protections that limit the impact of resource exhaustion from decompression bombs in HTTP responses.

References