CVE-2025-66418 — Vulnerability in urllib3 — CVE Details
urllib3 allows an unbounded number of links in the decompression chain
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.76%). Schedule for your next planned update.
Does your project use an affected urllib3 version?
Paste your requirements.txt to check it for CVE-2025-66418 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 supports chained HTTP encoding algorithms for response content according to RFC 9110 (e.g., Content-Encoding: gzip, zstd).
However, the number of links in the decompression chain was unbounded allowing a malicious server to insert a virtually unlimited number of compression steps leading to high CPU usage and massive memory allocation for the decompressed data.
Affected usages
Applications and libraries using urllib3 version 2.5.0 and earlier for HTTP requests to untrusted sources unless they disable content decoding explicitly.
Remediation
Upgrade to at least urllib3 v2.6.0 in which the library limits the number of links to 5.
If upgrading is not immediately possible, use preload_content=False and ensure that resp.headers["content-encoding"] contains a safe number of encodings before reading the response content.
Advisory Timeline
- First published December 5, 2025 (356 days ago).
- Last revised September 10, 2026 — 278 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "urllib3>=2.6.0"
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.24, 1.24.1, 1.24.2, 1.24.3 (+53 more) | 2.6.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-770Allocation of Resources Without LimitsMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.
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
References
Frequently Asked Questions
- What is CVE-2025-66418?
- urllib3 allows an unbounded number of links in the decompression chain. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.0/10).
- How do I check if my project is affected by CVE-2025-66418?
- CVE-2025-66418 affects urllib3. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-66418 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 51.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-66471HIGH
urllib3 streaming API improperly handles highly compressed data
- CVE-2026-21441HIGH
Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)
- CVE-2026-97687HIGH
urllib3: HTTPS proxy TLS configuration may be ignored or overridden
- CVE-2026-97689HIGH
urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
- CVE-2025-66471HIGH
urllib3 streaming API improperly handles highly compressed data
- CVE-2024-37891MEDIUM
urllib3's Proxy-Authorization request header isn't stripped during cross-origin redirects
- CVE-2025-50181MEDIUM
urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation
- CVE-2026-97688MEDIUM
urllib3: Chunked Deflate streaming can enter an infinite loop