# CVE-2026-142229: Encode httpx through 0.29.0 Resource Exhaustion via Unlimited Content-Encoding Decoder Chain

Source: https://aplosec.si/cve/CVE-2026-142229/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142229

Medium 6.3 · Reported · No fix listed · CWE-770 · PyPI

# Encode httpx through 0.29.0 Resource Exhaustion via Unlimited Content-Encoding Decoder Chain

CVE-2026-142229 · published 2026-12-02

In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). No fixed release is listed yet.

## Summary

CVE-2026-142229 affects httpx (PyPI) <= 0.29.0: Resource Exhaustion via Unlimited Content-Encoding Decoder Chain (CWE-770). No fixed release is listed. CVSS 4.0 base score 6.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

Encode httpx through 0.29.0 contains a resource exhaustion vulnerability in Response._get_content_decoder that allows malicious servers to exhaust client CPU and memory via unlimited Content-Encoding codings. Attackers can send a Content-Encoding header listing thousands of codings, forcing allocation of thousands of decompressor objects and amplified decompression of nested bodies.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/encode-httpx-through-0.29.0-resource-exhaustion-via-unlimited-content-encoding-decoder-chain](https://www.vulncheck.com/advisories/encode-httpx-through-0.29.0-resource-exhaustion-via-unlimited-content-encoding-decoder-chain)

- [Vulnerable codehttps://github.com/encode/httpx/blob/0.29.0/httpx/_models.py#L699-L722](https://github.com/encode/httpx/blob/0.29.0/httpx/_models.py#L699-L722)

- [Vulnerable codehttps://github.com/encode/httpx/blob/0.29.0/httpx/_decoders.py#L203-L226](https://github.com/encode/httpx/blob/0.29.0/httpx/_decoders.py#L203-L226)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142229](https://www.cve.org/CVERecord?id=CVE-2026-142229)

**Severity:** Medium 6.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142229)

**Package:** httpx

**Ecosystem:** PyPI

**Affected:** <= 0.29.0

**Fixed:** None

**Weakness:** CWE-770

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
