CVE-2026-21441
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-01-07
- Last modified
- 2026-11-10
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
2.7 %
higher than 84 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Python | Urllib3 | ≥ 1.22, < 2.6.3 | Affected |
Weakness type
-
CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
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
Related at Berigo
Articles
-
A fake CAPTCHA gets the user to open a tunnel into the network
Same product
2026-09-01
Microsoft has tracked the TerminalFix campaign, in which compromised websites show a fake Cloudflare CAPTCHA and ask visitors to paste a command into…
-
The crypto library behind Python now ships quantum-resistant algorithms
Same product
2026-08-18
Trail of Bits has added ML-KEM and ML-DSA to pyca/cryptography, funded by the Sovereign Tech Agency. The library is the eleventh most downloaded pack…
-
Records are being pulled from Salesforce and ServiceNow portals that need no login
Same product
2026-08-14
Reco is tracking an ongoing campaign it calls City-Forum, in which a single tool written in Go pulls records from customer portals in Salesforce Expe…
-
CrashStealer poses as Apple crash reporting and empties the Keychain on Mac
Same product
2026-08-05
Kaspersky has described CrashStealer, a macOS information stealer delivered through a fake videoconferencing installer. The installer is both signed …
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.