8.9high
urllib3 allows an unbounded number of links in the decompression chain
- Severity
- 8.9high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.73% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-gm62-xv2j-4w53PYSEC-2026-1998
Description
urllib3 is a user-friendly HTTP client library for Python. Starting in version 1.24 and prior to 2.6.0, 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. This vulnerability is fixed in 2.6.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| urllib3 urllib3 | >= 1.24, < 2.6.0 | CVE List |
| urllib3 (PyPI) | from 1.24 before 2.6.0 | GitHub Advisory Database, PyPA Advisory Database |
| python urllib3 | from 1.24 before 2.6.0 | NVD |
All scores
| GitHub_M | 8.9high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
urllib3 is a user-friendly HTTP client library for Python. Starting in version 1.24 and prior to 2.6.0, 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. This vulnerability is fixed in 2.6.0.
GitHub Advisory Database
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.
NVD (es)
urllib3 es una biblioteca cliente HTTP fácil de usar para Python. A partir de la versión 1.24 y en versiones anteriores a la 2.6.0, el número de enlaces en la cadena de descompresión era ilimitado, lo que permitía a un servidor malicioso insertar un número prácticamente ilimitado de pasos de compresión, lo que provocaba un alto uso de CPU y una asignación masiva de memoria para los datos descomprimidos. Esta vulnerabilidad se corrigió en la versión 2.6.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66418 changed 2026-11-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gm62-xv2j-4w53 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-66418 changed 2026-11-10 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1998 changed 2026-07-07 | CC-BY-4.0 |