CVE-2026-21441
CVE-2026-21441 is a high-severity vulnerability in Python Urllib3 with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-409.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v4: 8.9
- EPSS exploit prediction: 3% (84th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-1188
- Weakness: CWE-409
- Affected product: Python Urllib3
- Published:
- Last modified:
Description
urllib3 is an HTTP client library for Python. 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 decoding or decompression based on the HTTP `Content-Encoding` header (e.g., `gzip`, `deflate`, `br`, or `zstd`). When using the streaming API, the library decompresses only the necessary bytes, enabling partial content consumption. Starting in version 1.22 and prior to version 2.6.3, for HTTP redirect responses, the library would read the entire response body to drain the connection and decompress the content unnecessarily. This decompression occurred even before any read methods were called, and configured read limits did not restrict the amount of decompressed data. As a result, there was no safeguard against decompression bombs. A malicious server could exploit this to trigger excessive resource consumption on the client. Applications and libraries are affected when they stream content from untrusted sources by setting `preload_content=False` when they do not disable redirects. Users should upgrade to at least urllib3 v2.6.3, in which the library does not decode content of redirect responses when `preload_content=False`. If upgrading is not immediately possible, disable redirects by setting `redirect=False` for requests to untrusted source.
Frequently asked questions
- What is CVE-2026-21441?
- urllib3 is an HTTP client library for Python. 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 decoding or decompression based on the HTTP `Content-Encoding` header (e.g., `gzip`, `deflate`, `br`, or `zstd`). When using the streaming API, the library decompresses only the necessary bytes, enabling partial content consumption. Starting in version 1.22 and prior to version 2.6.3, for HTTP redirect responses, the library would read the entire response body to drain the connection and decompress the content unnecessarily. This decompression occurred even before any read methods were called, and configured read limits did not restrict the amount of decompressed data. As a result, there was no safeguard against decompression bombs. A malicious server could exploit this to trigger excessive resource consumption on the client. Applications and libraries are affected when they stream content from untrusted sources by setting `preload_content=False` when they do not disable redirects. Users should upgrade to at least urllib3 v2.6.3, in which the library does not decode content of redirect responses when `preload_content=False`. If upgrading is not immediately possible, disable redirects by setting `redirect=False` for requests to untrusted source.
- How severe is CVE-2026-21441?
- CVE-2026-21441 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2026-21441 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 3% (84th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-21441?
- CVE-2026-21441 affects Python Urllib3. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-21441?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-21441 have an EU (EUVD) identifier?
- Yes. CVE-2026-21441 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-1188.
- When was CVE-2026-21441 published?
- CVE-2026-21441 was published on 2026-01-07 and last updated on 2026-07-03.
References
- https://github.com/urllib3/urllib3/commit/8864ac407bba8607950025e0979c4c69bc7abc7b
- https://github.com/urllib3/urllib3/security/advisories/GHSA-38jv-5279-wg99
- https://lists.debian.org/debian-lts-announce/2026/01/msg00017.html
- https://access.redhat.com/errata/RHSA-2026:0981
- https://access.redhat.com/errata/RHSA-2026:0990
- https://access.redhat.com/errata/RHSA-2026:10184
- https://access.redhat.com/errata/RHSA-2026:1038
- https://access.redhat.com/errata/RHSA-2026:1041
- https://access.redhat.com/errata/RHSA-2026:1042
- https://access.redhat.com/errata/RHSA-2026:1086
- https://access.redhat.com/errata/RHSA-2026:1087
- https://access.redhat.com/errata/RHSA-2026:1088
- https://access.redhat.com/errata/RHSA-2026:1089
- https://access.redhat.com/errata/RHSA-2026:1166
- https://access.redhat.com/errata/RHSA-2026:1168
- https://access.redhat.com/errata/RHSA-2026:1176
- https://access.redhat.com/errata/RHSA-2026:1224
- https://access.redhat.com/errata/RHSA-2026:1226
- https://access.redhat.com/errata/RHSA-2026:1239
- https://access.redhat.com/errata/RHSA-2026:1240
- https://access.redhat.com/errata/RHSA-2026:1241
- https://access.redhat.com/errata/RHSA-2026:1254
- https://access.redhat.com/errata/RHSA-2026:1485
- https://access.redhat.com/errata/RHSA-2026:14877
- https://access.redhat.com/errata/RHSA-2026:1504
- https://access.redhat.com/errata/RHSA-2026:1546
- https://access.redhat.com/errata/RHSA-2026:1596
- https://access.redhat.com/errata/RHSA-2026:1599
- https://access.redhat.com/errata/RHSA-2026:1609
- https://access.redhat.com/errata/RHSA-2026:1618
Affected products (1)
- cpe:2.3:a:python:urllib3:*:*:*:*:*:*:*:*
More vulnerabilities in Python Urllib3
- CVE-2018-20060 — Critical (CVSS 9.8): urllib3 before version 1.23 does not remove the Authorization HTTP header when following a cross-origin redirect (i.e.,…
- CVE-2026-44432 — High (CVSS 7.5): urllib3 is an HTTP client library for Python. From 2.6.0 to before 2.7.0, urllib3 could decompress the whole response…
- CVE-2025-66471 — High (CVSS 7.5): urllib3 is a user-friendly HTTP client library for Python. Starting in version 1.0 and prior to 2.6.0, the Streaming…
- CVE-2025-66418 — High (CVSS 7.5): urllib3 is a user-friendly HTTP client library for Python. Starting in version 1.24 and prior to 2.6.0, the number of…
- CVE-2021-33503 — High (CVSS 7.5): An issue was discovered in urllib3 before 1.26.5. When provided with a URL containing many @ characters in the…
- CVE-2020-7212 — High (CVSS 7.5): The _encode_invalid_chars function in util/url.py in the urllib3 library 1.25.2 through 1.25.7 for Python allows a…
All CVEs affecting Python Urllib3 →
Other CWE-409 vulnerabilities
- CVE-2026-53430 — High (CVSS 8.7): Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in elixir-grpc grpc…
- CVE-2026-44697 — High (CVSS 8.6): Klever-Go is the Go implementation of the Klever blockchain protocol. Prior to 1.7.17, a remote, unauthenticated…
- CVE-2026-49755 — High (CVSS 8.2): Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in wojtekmach Req allows…
- CVE-2026-48594 — High (CVSS 8.2): Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in elixir-tesla tesla allows a denial of…
- CVE-2026-43970 — High (CVSS 8.2): Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in ninenines cowlib allows…
- CVE-2026-24264 — High (CVSS 7.5): NVIDIA Triton Inference Server for Linux contains a vulnerability where an attacker can cause improper handling of…