Allocation of Resources Without Limits or Throttling Affecting httpx package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.73% (56th 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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-HTTPX-23352826
  • published3 Dec 2026
  • disclosed2 Dec 2026
  • creditZachariah Mithani

Introduced: 2 Dec 2026

NewCVE-2026-142229  (opens in a new tab)
CWE-770  (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 Allocation of Resources Without Limits or Throttling in the _get_content_decoder method of Response and the MultiDecoder class in httpx/_decoders.py. An attacker can exhaust client CPU and memory by returning a response whose Content-Encoding header lists a large number of comma-separated codings, since each recognized token causes a new decompressor object to be allocated with no upper bound on the total count, and every allocated decoder then runs once per chunk during decoding. This compounds with the separate per-layer decompression amplification in the same decoder chain, since each additional coding both adds an object and a further potential expansion factor.

CVSS Base Scores

version 4.0
version 3.1