CVE-2026-21441

Source
https://nvd.nist.gov/vuln/detail/CVE-2026-21441
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21441.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-21441
Aliases
Downstream
Related
Published
2026-01-07T22:09:01.936Z
Modified
2026-01-13T20:07:09.298577Z
Severity
  • 8.9 (High) CVSS_V4 - 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 CVSS Calculator
Summary
urllib3 vulnerable to decompression-bomb safeguard bypass when following HTTP redirects (streaming API)
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-409"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21441.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/urllib3/urllib3

Affected ranges

Type
GIT
Repo
https://github.com/urllib3/urllib3
Events

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21441.json"