Home › CVE › Vulnerabilities
CVE-2026-142228 — encode httpx
One of 2 encode httpx vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
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.
Severity breakdown
High · 8.2
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| encode httpx | ≤ 0.29.0 | — |
References by type
Other references
Affected
- encode httpx
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-142228?
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. Weakness type: Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409).
How severe is CVE-2026-142228?
CVE-2026-142228 has a CVSS 4.0 base score of 8.2 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-142228 being exploited?
Not as far as is known: CVE-2026-142228 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-142228?
encode httpx ≤ 0.29.0.
How do I fix CVE-2026-142228?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.