CVE-2026-84382: CWE-409: Improper Handling of Highly Compressed Data (Data Amplification) in pydantic httpx2
Description
### Summary When 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. ### Details HTTPX2'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. At 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. ### Impact Applications 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. ### Mitigation Upgrade to HTTPX2 `2.12.0` or later. Patched versions decompress responses incrementally with bounded intermediate buffers, including responses with multiple content encodings.
CVSS v3.1
Score 7.5high
Affected software
pydantic
httpx2
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
HTTPX2 versions before 2.12.0 decompress compressed HTTP response chunks fully into memory before yielding any decompressed data, leading to large intermediate memory allocations. For example, a 64 KiB compressed chunk can expand to about 64 MiB in memory due to DEFLATE's high compression ratio. Similar amplification occurs with Brotli and Zstandard encodings. This behavior can cause memory pressure or out-of-memory crashes when fetching resources from untrusted or attacker-controlled servers, such as webhook receivers or SSRF-reachable fetchers. The vulnerability is tracked as CWE-409 (Improper Handling of Highly Compressed Data).
Potential Impact
Applications using vulnerable versions of httpx2 that fetch data from untrusted or attacker-influenced servers may experience significant memory pressure or out-of-memory termination due to large decompression amplification. No authentication or user interaction is required beyond making a request. This can disrupt service availability or cause denial of service.
Mitigation Recommendations
Upgrade to httpx2 version 2.12.0 or later. The fix implements incremental decompression with bounded intermediate buffers, preventing large memory allocations during response streaming. No other mitigation is required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-01T16:27:58.130Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a986974acd9273b4993d06d
Added to database: 09/02/2026, 18:22:44 UTC
Last enriched: 09/29/2026, 05:03:32 UTC
Last updated: 10/17/2026, 18:48:23 UTC
Views: 107
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.