Security Resilience

CVE-2026-21441

Python Urllib3 1.22 – 2.6.3

Published
07 January 2026
Modified
10 November 2026
Patch / advisory
CVSS Score v4 8.9
Click a component to see what it means
Raw vectorCVSS: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.039 91th percentile
Risk Priority 50 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

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 Endpoint Denial of Service (T1499); ranked in the top 9% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and SC-5 (Denial-of-service Protection) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

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 Data

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 Techniques

MITRE ATT&CK v20.0

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.003 Application Exhaustion Flood Impact
Adversaries may target resource intensive features of applications to cause a denial of service (DoS), denying availability to those applications.
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.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-66471Same product: Python Urllib3
CVE-2026-44432Same product: Python Urllib3
CVE-2025-66418Same product: Python Urllib3
CVE-2026-97689Same product: Python Urllib3
CVE-2026-97687Same product: Python Urllib3
CVE-2025-50181Same product: Python Urllib3
CVE-2026-44431Same product: Python Urllib3
CVE-2026-112892Same vendor: Python
CVE-2025-50182Same product: Python Urllib3
CVE-2026-96637Same vendor: Python

Affected Assets

python
urllib3
1.22 — 2.6.3

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Input validation can reject or limit decompression of data whose expansion ratio exceeds safe thresholds.

DoS protection limits the resource-exhaustion impact when a decompression bomb is processed.

Resource allocation controls bound memory/CPU consumption that a data-amplification attack would otherwise exhaust.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure-development practices include input-validation and resource-limit checks that prevent improper handling of compressed data.

DE.CM-09 partial match
blocks

Runtime monitoring of compute resources can detect exhaustion caused by decompression bombs.

PR.IR-04 partial match
blocks

Capacity planning and monitoring directly limits the availability impact of data-amplification attacks.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can uncover decompression-bomb vulnerabilities before release.

prevents

Technical training for teams that build parsers/handlers of compressed input can teach developers about decompression bombs and the need for size limits during decompression, but the general awareness programme does not reach this niche implementation defect, and only a minority of developers receive the relevant specialised training.

finds

Monitoring can detect anomalous resource usage but does not prevent the weakness.

prevents

Secure coding practices directly require bounds checking and safe handling of compressed data.

prevents

A.8.30 carries its effect through the secure-development practices (8.25–8.29) its contract requires of the supplier, so it reduces ordinary software weaknesses in delivered code the way those practices do; CWE-409 is a regular implementation weakness that secure coding and testing would address, but the clause's reach is bounded by the supplier's fallible practice, matching the owner-graded A.8.30 -> CWE-134 anchor at the clause's declared ceiling.

finds

A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw via vulnerability scanning, CVE tracking, and supplier reporting. CWE-409 does surface as CVEs (XML bombs in web servers, parsing libraries), so the disclosed third-party share is found. But the majority of CWE-409 instances live in first-party code (custom XML parsers, custom decompression handlers) where no advisory exists, and A.8.8 does not read source — that reach belongs to A.8.28/A.8.29. Same logic as A.8.8 finds CWE-89 = partial.

References