CVE-2026-142229
LowCVSS 3.7Exploitation Probability (EPSS)
Elevated risk56th percentile - higher than 56% of all known CVEs
Summary
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.
Risk Assessment
A malicious server can cause resource exhaustion in the httpx client, leading to denial of service or application hang. The risk affects any application using httpx to communicate with untrusted servers.
Recommendation
Update the httpx library to a version later than 0.29.0 if available, or limit the number of supported Content-Encoding codings. Consider validating response headers from untrusted servers.
Other vulnerabilities in httpx
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

