Vulnerabilities in pkg:pypi/httpx2
PACKAGECVE-2026-84382 is a HIGH (CVSS 7.5) streaming response decompression does not vulnerability (CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)) affecting HTTPX2 libraries in the PyPI ecosystem. The issue involves streaming response decompression does not bound peak memory (decompression amplification). Remediation is available by upgrading affected packages to version 2.12.0.
pkg:pypi/httpx2
Vulnerability advisories affecting package pkg:pypi/httpx2. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8xx6-hgc6-gc2m | CVE-2026-84382 | HIGH | HTTPX2: Streaming response decompression does not bound peak memory (decompression amplification) |
| GHSA-pf96-p4fj-6566 | CVE-2026-84380 | MODERATE | HTTPX2: Conflicting Content-Length and Transfer-Encoding headers can be auto-generated |
| GHSA-h4x7-gw46-3wm6 | CVE-2026-84379 | MODERATE | HTTPX2: Multipart part header injection via unvalidated file Content-Type and custom headers |
| GHSA-f2fp-rgf2-35cp | CVE-2026-84378 | MODERATE | HTTPX2: Quadratic SSE line buffering can cause CPU denial of service |
| GHSA-7mj9-2mp8-4m2p | CVE-2026-84381 | HIGH | HTTPX2: Secure WebSocket traffic sent without TLS through SOCKS proxies |
CVE-2026-84382 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-84382
To remediate this vulnerability, upgrade all affected HTTPX2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install httpx2>=2.12.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show httpx2
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-84382, inspect your installed packages using pip:
pip show httpx2
Analyze the terminal output to locate any version of HTTPX2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.12.0), your application is affected.
Note: The pip show httpx2 command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-409: Improper Handling of Highly Compressed Data (Data Amplification), where the product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output. In HTTPX2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-84382 Affected HTTPX2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
httpx2
|
PyPI |
< 2.12.0
|
2.12.0
|
References
Frequently Asked Questions
What is CVE-2026-84382?
Which HTTPX2 versions are affected?
What version fixes CVE-2026-84382?
Is httpx2 affected?
What is the CVSS score of CVE-2026-84382?
What CWE is associated with CVE-2026-84382?
How can I check PyPI dependencies for CVE-2026-84382?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8xx6-hgc6-gc2m",
"modified" : "2026-09-08T20:48:59Z",
"published" : "2026-09-08T20:48:59Z",
"aliases" : [ "CVE-2026-84382" ],
"summary" : "HTTPX2: Streaming response decompression does not bound peak memory (decompression amplification)",
"details" : "### Summary\n\nWhen decoding a compressed response body (`gzip`, `deflate`, `br`, or `zstd`), HTTPX2 fully decompressed each network read before yielding content to the application. A small compressed input could therefore cause a large intermediate memory allocation, even when the application streamed the response to keep memory usage bounded.\n\n### Details\n\nHTTPX2's default transport reads the socket in pieces of up to 64 KiB. Before `2.12.0`, each piece was inflated completely into one intermediate allocation before any decompressed bytes were yielded.\n\nAt DEFLATE's maximum compression ratio of roughly 1032:1, a 64 KiB compressed chunk can expand to about 64 MiB in one allocation. Brotli and Zstandard responses can cause similarly large amplification. Streaming the response did not prevent these transient allocations.\n\n### Impact\n\nApplications that fetch resources from untrusted or attacker-influenced servers - such as webhook receivers, link unfurlers, crawlers, SSRF-reachable fetchers, and redirect followers - can experience memory pressure or out-of-memory termination when processing a malicious compressed response. No authentication or user interaction is required beyond issuing a request to the server.\n\n### Mitigation\n\nUpgrade to HTTPX2 `2.12.0` or later. Patched versions decompress responses incrementally with bounded intermediate buffers, including responses with multiple content encodings.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "httpx2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pydantic/httpx2/security/advisories/GHSA-8xx6-hgc6-gc2m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-84382"
}, {
"type" : "WEB",
"url" : "https://github.com/pydantic/httpx2/pull/1126"
}, {
"type" : "WEB",
"url" : "https://github.com/pydantic/httpx2/commit/4fd0c70a3f207c618b145934792f791bccfb39f8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pydantic/httpx2"
}, {
"type" : "WEB",
"url" : "https://github.com/pydantic/httpx2/releases/tag/v2.12.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-409" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-08T20:48:59Z",
"nvd_published_at" : "2026-09-02T19:18:08Z"
}
}