{"id":"CVE-2026-84382","aliases":["CVE-2026-84382","GHSA-8xx6-hgc6-gc2m","PYSEC-2026-3846"],"related":[],"kind":"vulnerability","state":"published","title":"HTTPX2: Streaming response decompression does not bound peak memory (decompression amplification)","summary":"HTTPX2 is a next generation HTTP client for Python. Prior to 2.12.0, the HTTPX2 content decoders in src/httpx2/httpx2/_decoders.py fully inflate each gzip, deflate, br, or zstd network chunk before iter_bytes() or aiter_bytes() yields bounded pieces to the application. A 64 KiB compressed chunk can expand to approximately 64 MiB in one intermediate allocation, so an attacker-controlled or compromised server can cause severe memory pressure or out-of-memory process termination even when the application streams the response. This issue is fixed in version 2.12.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"HTTPX2 is a next generation HTTP client for Python. Prior to 2.12.0, the HTTPX2 content decoders in src/httpx2/httpx2/_decoders.py fully inflate each gzip, deflate, br, or zstd network chunk before iter_bytes() or aiter_bytes() yields bounded pieces to the application. A 64 KiB compressed chunk can expand to approximately 64 MiB in one intermediate allocation, so an attacker-controlled or compromised server can cause severe memory pressure or out-of-memory process termination even when the application streams the response. This issue is fixed in version 2.12.0.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-09-02T18:03:05.010Z","modified":"2026-09-10T12:26:04.899Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-409"],"affected":[{"ranges":[{"version":"< 2.12.0","status":"affected"}],"vendor":"pydantic","product":"httpx2","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.12.0"}],"ecosystem":"PyPI","package":"httpx2","purl":"pkg:pypi/httpx2","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.12.0"}],"ecosystem":"PyPI","package":"httpx2","purl":"pkg:pypi/httpx2","source":"pysec"}],"references":[{"url":"https://github.com/pydantic/httpx2/security/advisories/GHSA-8xx6-hgc6-gc2m","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pydantic/httpx2/pull/1126","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pydantic/httpx2/commit/4fd0c70a3f207c618b145934792f791bccfb39f8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pydantic/httpx2/releases/tag/v2.12.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84382","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pydantic/httpx2","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/httpx2","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8xx6-hgc6-gc2m","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-03T14:09:07.115Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-84382","url":"https://www.cve.org/CVERecord?id=CVE-2026-84382","licence":"CVE Terms of Use","modified":"2026-09-03T14:31:19.366Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xx6-hgc6-gc2m","url":"https://github.com/advisories/GHSA-8xx6-hgc6-gc2m","licence":"CC-BY-4.0","modified":"2026-09-10T12:26:04.899Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-84382","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84382","licence":"Public domain","modified":"2026-09-09T21:05:23.237Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3846","url":"https://osv.dev/vulnerability/PYSEC-2026-3846","licence":"CC-BY-4.0","modified":"2026-09-10T12:15:05.042Z"}],"updatedAt":"2026-11-25T22:59:36.141Z","epss":{"score":0.00346,"percentile":0.30153,"date":"2026-12-01T12:00:22.000Z"}}