Improper Handling of Highly Compressed Data (Data Amplification) Affecting urllib3 package, versions [1.22,2.6.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
EPSS
2.71% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-URLLIB3-14896210
  • published8 Jan 2026
  • disclosed7 Jan 2026
  • creditUnknown

Introduced: 7 Jan 2026

CVE-2026-21441  (opens in a new tab)
CWE-409  (opens in a new tab)

How to fix?

Upgrade urllib3 to version 2.6.3 or higher.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the streaming API when handling HTTP redirects. An attacker can cause excessive resource consumption by serving a specially crafted compressed response that triggers decompression of large amounts of data before any read limits are enforced.

Note: This is only exploitable if content is streamed from untrusted sources with redirects enabled.

Workaround

This vulnerability can be mitigated by disabling redirects by setting redirect=False for requests to untrusted sources.

References

CVSS Base Scores

version 4.0
version 3.1