AploSec / Disclosures / CVE-2026-142228
Encode httpx through 0.29.0 Memory Exhaustion via Unbounded Response Decompression
CVE-2026-142228 · 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-142228 affects httpx (PyPI) <= 0.29.0: Memory Exhaustion via Unbounded Response Decompression (CWE-409). No fixed release is listed. CVSS 4.0 base score 8.2 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
Encode httpx through 0.29.0 contains an unbounded decompression vulnerability that allows malicious servers to exhaust client memory by returning highly compressed response bodies. Attackers can stack Content-Encoding layers so each 64 KB network read expands to tens of megabytes, bypassing iter_bytes chunk limits and terminating the process.
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-memory-exhaustion-via-unbounded-response-decompression
- Vulnerable codehttps://github.com/encode/httpx/blob/0.29.0/httpx/_decoders.py#L56-L105
- Vulnerable codehttps://github.com/encode/httpx/blob/0.29.0/httpx/_models.py#L883-L903
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142228
- Severity
- High 8.2CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- httpx
- Ecosystem
- PyPI
- Affected
- <= 0.29.0
- Fixed
- None
- Weakness
- CWE-409
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder