Skip to main content

CVE-2025-66418 — Vulnerability in urllib3 — CVE Details

HIGH

urllib3 allows an unbounded number of links in the decompression chain

Published December 5, 2025Updated September 10, 2026Source: OSV

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.

Check my requirements.txt

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

PackageFixed 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-770
    Allocation of Resources Without LimitsMITRE

CVSS Score Breakdown

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

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

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

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

CVSS Score
8.0

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.76%
EPSS percentile: 51.6

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

GHSA-gm62-xv2j-4w53
PYSEC-2026-1998

Related CVEs

  • CVE-2025-66471
    HIGH

    urllib3 streaming API improperly handles highly compressed data

  • CVE-2026-21441
    HIGH

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

  • CVE-2026-97687
    HIGH

    urllib3: HTTPS proxy TLS configuration may be ignored or overridden

  • CVE-2026-97689
    HIGH

    urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory

  • CVE-2025-66471
    HIGH

    urllib3 streaming API improperly handles highly compressed data

  • CVE-2024-37891
    MEDIUM

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

  • CVE-2025-50181
    MEDIUM

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

  • CVE-2026-97688
    MEDIUM

    urllib3: Chunked Deflate streaming can enter an infinite loop

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt