Logo
vulnerabilityCVE-2026-21441
Name
CVE-2026-21441
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
python3-urllib3
Exploitable

Vulnerability Ratings#


8.9
CVSSv4
7.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
2.7.0
Not Affected
buildroot
master
2.7.0
Not Affected
openwrt
master
2.7.0-r1
Not Affected
openwrt
openwrt-25.12
2.6.3-r1
Not Affected
yocto
master
2.7.0
Not Affected
yocto
scarthgap
2.2.2
Patched

Resolved with patches#


python3-urllib3 (yocto:scarthgap)

#
Title
Author
Resolve
1
Backport fix CVE-2026-21441 python urllib3
Illia Volochii <illia.volochii@gmail.com>
CVE-2026-21441