Data Amplification Affecting httpx package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.75% (57th 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-HTTPX-23352778
  • published3 Dec 2026
  • disclosed2 Dec 2026
  • creditZachariah Mithani

Introduced: 2 Dec 2026

NewCVE-2026-142228  (opens in a new tab)
CWE-409  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

httpx is a The next generation HTTP client.

Affected versions of this package are vulnerable to Data Amplification in the GZipDecoder, DeflateDecoder, BrotliDecoder, ZStandardDecoder, and MultiDecoder classes in httpx/_decoders.py. An attacker can exhaust client memory by returning a response with one or more Content-Encoding values (optionally stacked, since there is no limit on the number of chained encodings) whose body decompresses to many times its size, since each decoder fully decompresses a network read in a single call before the result is ever split into bounded chunks. This affects both streaming and non-streaming use, since Response.iter_bytes()'s chunk_size parameter only splits the output after decompression has already completed in memory.

CVSS Base Scores

version 4.0
version 3.1