CVE-2026-142228: Encode httpx through 0.29.0 Memory Exhaustion via Unbounded Response Decompression
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 iterbytes chunk limits and terminating the process.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using the PyPI httpx package through version 0.29.0 are exposed when they make requests to a malicious or attacker-controlled server that can return compressed response bodies.
Does exploitation require authentication or user interaction?
No. The supplied vector indicates network reachability with no privileges and no user interaction, although exploitation has high attack complexity.
Why do response chunk limits not prevent this memory exhaustion?
A malicious server can stack Content-Encoding layers so that a 64 KB network read decompresses into tens of megabytes. This expansion occurs in a way that bypasses iter_bytes chunk limits and can terminate the client process.
What is the likely impact of successful exploitation?
Successful exploitation can exhaust the client process's memory and terminate it. The provided impact data indicates availability impact only, with no stated confidentiality or integrity impact.