{"id":"CVE-2025-66418","aliases":["CVE-2025-66418","GHSA-gm62-xv2j-4w53","PYSEC-2026-1998"],"related":[],"kind":"vulnerability","state":"published","title":"urllib3 allows an unbounded number of links in the decompression chain","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nurllib3 supports chained HTTP encoding algorithms for response content according to RFC 9110 (e.g., `Content-Encoding: gzip, zstd`).\n\nHowever, 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.\n\n\n## Affected usages\n\nApplications and libraries using urllib3 version 2.5.0 and earlier for HTTP requests to untrusted sources unless they disable content decoding explicitly.\n\n\n## Remediation\n\nUpgrade to at least urllib3 v2.6.0 in which the library limits the number of links to 5.\n\nIf upgrading is not immediately possible, use [`preload_content=False`](https://urllib3.readthedocs.io/en/2.5.0/advanced-usage.html#streaming-and-i-o) and ensure that `resp.headers[\"content-encoding\"]` contains a safe number of encodings before reading the response content.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-05T16:02:15.271Z","modified":"2026-11-10T17:17:17.047Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.9,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":">= 1.24, < 2.6.0","status":"affected"}],"vendor":"urllib3","product":"urllib3","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.24","status":"affected","fixed":"2.6.0"}],"ecosystem":"PyPI","package":"urllib3","purl":"pkg:pypi/urllib3","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.24","fixed":"2.6.0"}],"vendor":"python","product":"urllib3","cpe":"cpe:2.3:a:python:urllib3:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"1.24","status":"affected","fixed":"2.6.0"}],"ecosystem":"PyPI","package":"urllib3","purl":"pkg:pypi/urllib3","source":"pysec"}],"references":[{"url":"https://github.com/urllib3/urllib3/security/advisories/GHSA-gm62-xv2j-4w53","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/urllib3/urllib3/commit/24d7b67eac89f94e11003424bcf0d8f7b72222a8","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66418","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/urllib3/urllib3","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/urllib3","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-gm62-xv2j-4w53","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-10T16:03:37.458Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66418","url":"https://www.cve.org/CVERecord?id=CVE-2025-66418","licence":"CVE Terms of Use","modified":"2026-11-10T16:03:44.472Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gm62-xv2j-4w53","url":"https://github.com/advisories/GHSA-gm62-xv2j-4w53","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:58.741Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66418","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66418","licence":"Public domain","modified":"2026-11-10T17:17:17.047Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1998","url":"https://osv.dev/vulnerability/PYSEC-2026-1998","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:54.140Z"}],"updatedAt":"2026-11-25T22:59:08.336Z","epss":{"score":0.00731,"percentile":0.55514,"date":"2026-12-01T12:00:22.000Z"}}