Skip to main content

urllib3 CVE-2026-44432

HIGH
Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409)
2026-05-11 https://github.com/urllib3/urllib3 GHSA-mf9v-mfxr-j63j
8.9
CVSS 4.0 · Vendor: https://github.com/urllib3/urllib3
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker hosts malicious HTTP server
  2. Delivery
    Victim application requests resource
  3. Exploit
    Server responds with compressed decompression bomb
  4. Install
    Victim's urllib3 performs second read() or drain_conn()
  5. C2
    Full payload decompression triggered
  6. Execute
    Memory/CPU exhaustion
  7. Impact
    Client denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
Exploitation Conditions

Applications must use urllib3 versions 2.6.0 through 2.6.x AND employ the streaming API in one of two specific patterns: (1) reading Brotli-compressed (Content-Encoding: br) responses incrementally with at least two consecutive HTTPResponse.read(amt=N) or HTTPResponse.stream(amt=N) calls while using the official brotli Python package (not brotlicffi), OR (2) invoking HTTPResponse.drain_conn() after any partial read of a compressed response (any compression algorithm: gzip, deflate, br, or zstd). The application must accept HTTP responses from untrusted or attacker-controlled sources - exploitation is limited by whether the victim's code fetches content from external servers. Decompression must not be explicitly disabled (decode_content=True, the default). The Brotli-specific issue requires the brotli package specifically; users of brotlicffi are not affected by issue #1 but remain vulnerable to issue #2. Applications using single read() operations to consume entire responses, or higher-level libraries that buffer full responses before returning to application code, may not trigger these code paths. Network access to the victim application is required, but no authentication or user interaction - the victim simply needs to make an HTTP request to the attacker's server.

Impact

Real-world risk is moderate and highly context-dependent. The vulnerability requires applications to both (a) accept HTTP responses from untrusted or attacker-controlled servers, and (b) use specific urllib3 streaming API patterns - either multiple read() calls on Brotli-encoded responses or explicit drain_conn() invocations after partial reads. Many urllib3 users consume responses in single read operations or use higher-level libraries (like requests) that may not trigger these code paths. The attack complexity is low once conditions are met: an attacker controls the HTTP server and delivers a crafted compressed payload. Impact is limited to client-side denial of service (CPU/memory exhaustion) rather than code execution or data breach. CVSS score not provided, but the attack vector would likely be AV:N (network), AC:L (low complexity once prerequisites met), PR:N (no authentication to malicious server), with availability impact only. No EPSS data, no CISA KEV listing, and no public POC identified, suggesting this is not yet actively exploited. The narrow affected version range (only 2.6.0-2.6.x, introduced months before disclosure) limits exposure compared to long-lived vulnerabilities. Priority should focus on environments where Python applications fetch and stream content from untrusted external sources (web scrapers, API clients, data ingestion pipelines). Internal-only applications consuming trusted data sources face minimal risk. The availability of workarounds (switching Brotli implementations or avoiding drain_conn()) provides interim mitigation options.

Exploit ScenarioDerived

An attacker operates a malicious HTTP server or compromises a legitimate web service used by the victim's Python application. The attacker crafts a response with Content-Encoding: br containing a decompression bomb - e.g., 1 MB of highly compressed data expanding to 10 GB when decompressed. The victim application using urllib3 2.6.x makes an HTTP request and begins streaming the response with HTTPResponse.read(amt=8192). On the second read() call, urllib3 decompresses the entire remaining payload instead of the requested 8 KB chunk, allocating gigabytes of memory and consuming 100% CPU for decompression. The Python process crashes with MemoryError or becomes unresponsive, causing denial of service. Alternatively, if the application calls drain_conn() to finalize the connection, full decompression occurs even if only a small portion was initially read. Publicly available exploit code exists for similar decompression bomb techniques but not specifically targeting this urllib3 bug.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 11, 2026

Decompression bomb safeguards in urllib3 2.6.0 can be bypassed during streaming API operations, causing excessive CPU and memory consumption on client systems. Applications using urllib3 versions 2.6.0 through 2.6.x that stream Brotli-compressed responses with multiple read() calls, or invoke drain_conn() after partial decompression, may decompress entire payloads instead of requested chunks. This allows malicious servers to trigger resource exhaustion attacks against urllib3 clients. Vendor-released patch (version 2.7.0) confirmed by GitHub advisory GHSA-mf9v-mfxr-j63j. No public exploit identified at time of analysis, but exploitation requires only a malicious HTTP server delivering compressed responses - a low-complexity attack scenario.

RemediationAI

Upgrade to urllib3 version 2.7.0 or later, which implements proper incremental decompression for Brotli and skips decompression entirely in drain_conn() operations (advisory: https://github.com/urllib3/urllib3/security/advisories/GHSA-mf9v-mfxr-j63j). If immediate upgrade is blocked by dependency constraints, apply these targeted workarounds with noted limitations: (1) For the Brotli-specific bypass only, replace the brotli package with brotlicffi in your Python environment - this mitigates issue #1 but not issue #2, and may have performance differences or compatibility gaps with some brotli features. (2) If your code explicitly calls HTTPResponse.drain_conn(), refactor to use HTTPResponse.close() instead when connection reuse is not critical - this prevents the drain_conn() decompression issue but disables HTTP connection pooling, potentially degrading performance in high-throughput scenarios. (3) Disable automatic decompression by setting decode_content=False when creating HTTPResponse objects - this prevents all decompression bombs but requires application code to handle decompression manually, breaking existing logic that expects decoded content. (4) Implement application-level decompression size limits by wrapping read operations with memory threshold checks - adds overhead and complexity but provides defense-in-depth. None of these workarounds fully address both issues; upgrade to 2.7.0 remains the complete solution.

Affected Packages

pypi urllib3 fix: 2.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

urllib3 is a foundational Python HTTP client library used by requests, pip, and numerous other tools. The streaming API design reads HTTP response bodies incrementally to avoid loading large payloads into memory. Since version 2.6.0, urllib3 added incremental decompression for Content-Encoding formats (gzip, deflate, brotli, zstd), intending to decompress only the bytes requested per read operation. However, two implementation flaws bypass this safeguard: (1) a bug in the official Brotli library integration (https://github.com/google/brotli/issues/1396) causes full decompression on the second HTTPResponse.read(amt=N) call when using the brotli package, and (2) the drain_conn() method always fully decompresses remaining data regardless of compression algorithm. These behaviors violate the intended chunk-based decompression model. The root cause is CWE-409 (Improper Handling of Highly Compressed Data/Zip Bomb), where the library fails to enforce decompression limits during streaming operations, enabling classic decompression bomb attacks where tiny compressed payloads expand to gigabytes in memory.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/urllib3/urllib3) PRIMARY 8.9 HIGH
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
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/urllib3/urllib3).

CVSS VectorVendor: https://github.com/urllib3/urllib3

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
High

Lifecycle Timeline

2
CVSS changed
May 13, 2026 - 16:22 NVD
8.9 (HIGH)
CVE Published
May 11, 2026 - 14:51 nvd
HIGH

DescriptionCVE.org

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 decompression based on the HTTP Content-Encoding header (e.g., gzip, deflate, br, or zstd). When using the streaming API since version 2.6.0, the library decompresses only the necessary bytes, enabling partial content consumption.

However, urllib3 before version 2.7.0 could still decompress the whole response instead of the requested portion in two cases:

  1. During the second HTTPResponse.read(amt=N) call when the response was decompressed using the official Brotli library.
  2. When HTTPResponse.drain_conn() was called after the response had been read and decompressed partially (compression algorithm did not matter here).

These issues could cause urllib3 to fully decode a small amount of highly compressed data in a single operation. This could result in excessive resource consumption (high CPU usage and massive memory allocation for the decompressed data; CWE-409) on the client side.

Affected usages

Applications and libraries using urllib3 versions earlier than 2.7.0 may be affected when streaming compressed responses from untrusted sources in either of these cases, unless decompression is explicitly disabled:

  1. A response encoded with br is read incrementally with at least two HTTPResponse.read(amt=N) or HTTPResponse.stream(amt=N) calls while using the official Brotli library.
  2. HTTPResponse.drain_conn() is called after response decompression has already started.

Remediation

Upgrade to at least urllib3 version 2.7.0 in which the library:

  1. Is more efficient for reads with Brotli.
  2. Always skips decompression for HTTPResponse.drain_conn().

If upgrading is not immediately possible, the following workarounds may reduce exposure in specific cases:

  1. For the Brotli-specific issue only, switch from brotli to brotlicffi until you can upgrade urllib3; the official Brotli package is affected because of https://github.com/google/brotli/issues/1396.
  2. If your code explicitly calls HTTPResponse.drain_conn(), call HTTPResponse.close() instead when connection reuse is not important.

Credits

The Brotli-specific issue was reported by @kimkou2024. HTTPResponse.drain_conn() inefficiency was reported by @Cycloctane.

Executive ViewAI

Why It Matters

urllib3 versions 2.6.0-2.6.x contain a decompression bomb bypass vulnerability that allows malicious HTTP servers to exhaust client CPU and memory resources during streaming operations, potentially affecting any organization using this library for API integrations. Applications that stream Brotli-compressed responses are at direct risk of denial-of-service attacks without code changes or network controls.

Business Impact: High
Compensating Controls

Apply vendor patch (urllib3 version 2.7.0 or later). If immediate patching is not feasible: (1) Restrict outbound connections to trusted/internal API servers only; (2) implement request timeouts and connection resource limits in urllib3 client configurations; (3) monitor client process CPU and memory consumption for anomalies; (4) disable streaming decompression where not functionally required by setting stream=False on requests. These mitigations reduce but do not eliminate risk.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:pip/urllib3

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 12 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

References

Advisories & patches
ADVISORY https://access.redhat.com/errata/RHSA-2026:20338 ADVISORY https://github.com/urllib3/urllib3/security/advisories/GHSA-mf9v-mfxr-j63j ADVISORY https://ubuntu.com/security/notices/USN-8379-1 ADVISORY https://vuldb.com/vuln/363633 REF https://access.redhat.com/errata/RHSA-2026:15862 REF https://access.redhat.com/errata/RHSA-2026:22934 REF https://access.redhat.com/errata/RHSA-2026:23992 REF https://access.redhat.com/errata/RHSA-2026:24000 REF https://access.redhat.com/errata/RHSA-2026:24009 REF https://access.redhat.com/errata/RHSA-2026:24014 REF https://access.redhat.com/errata/RHSA-2026:24069 REF https://access.redhat.com/errata/RHSA-2026:24374 REF https://access.redhat.com/errata/RHSA-2026:24476 REF https://access.redhat.com/errata/RHSA-2026:24483 REF https://access.redhat.com/errata/RHSA-2026:24540 REF https://access.redhat.com/errata/RHSA-2026:24541 REF https://access.redhat.com/errata/RHSA-2026:24542 REF https://access.redhat.com/errata/RHSA-2026:24544 REF https://access.redhat.com/errata/RHSA-2026:25039 REF https://access.redhat.com/errata/RHSA-2026:25143 REF https://access.redhat.com/errata/RHSA-2026:25928 REF https://access.redhat.com/errata/RHSA-2026:26212 REF https://access.redhat.com/errata/RHSA-2026:26304 REF https://access.redhat.com/errata/RHSA-2026:27929 REF https://access.redhat.com/errata/RHSA-2026:28000 REF https://access.redhat.com/errata/RHSA-2026:28157 REF https://access.redhat.com/errata/RHSA-2026:28158 REF https://access.redhat.com/errata/RHSA-2026:28159 REF https://access.redhat.com/errata/RHSA-2026:28571 REF https://access.redhat.com/errata/RHSA-2026:30076 REF https://access.redhat.com/errata/RHSA-2026:30078 REF https://access.redhat.com/errata/RHSA-2026:30087 REF https://access.redhat.com/errata/RHSA-2026:30088 REF https://access.redhat.com/errata/RHSA-2026:30089 REF https://access.redhat.com/errata/RHSA-2026:32992 REF https://access.redhat.com/errata/RHSA-2026:33313 REF https://access.redhat.com/errata/RHSA-2026:33683 REF https://access.redhat.com/errata/RHSA-2026:34160 REF https://access.redhat.com/errata/RHSA-2026:34374 REF https://access.redhat.com/errata/RHSA-2026:34526 REF https://access.redhat.com/errata/RHSA-2026:34531 REF https://access.redhat.com/errata/RHSA-2026:34533 REF https://access.redhat.com/errata/RHSA-2026:34607 REF https://access.redhat.com/errata/RHSA-2026:36350 REF https://access.redhat.com/errata/RHSA-2026:37275 REF https://access.redhat.com/errata/RHSA-2026:41066 REF https://access.redhat.com/errata/RHSA-2026:42078 REF https://access.redhat.com/errata/RHSA-2026:42079 REF https://access.redhat.com/errata/RHSA-2026:42132 REF https://access.redhat.com/errata/RHSA-2026:42144 REF https://access.redhat.com/errata/RHSA-2026:42644 REF https://access.redhat.com/errata/RHSA-2026:42796 REF https://access.redhat.com/errata/RHSA-2026:43038 REF https://access.redhat.com/errata/RHSA-2026:44481 REF https://access.redhat.com/errata/RHSA-2026:51206 REF https://access.redhat.com/errata/RHSA-2026:56347 REF https://access.redhat.com/errata/RHSA-2026:58981 REF https://access.redhat.com/errata/RHSA-2026:59409 REF https://access.redhat.com/errata/RHSA-2026:60362 REF https://access.redhat.com/errata/RHSA-2026:60371 REF https://access.redhat.com/errata/RHSA-2026:7625 REF https://access.redhat.com/errata/RHSA-2026:7634 REF https://access.redhat.com/security/cve/CVE-2026-44432 REF https://bugzilla.redhat.com/show_bug.cgi?id=2477154 REF https://github.com/advisories/GHSA-mf9v-mfxr-j63j REF https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44432.json

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy