Skip to content

CVE-2026-142230 httpx2 through 2.17.0 Memory Exhaustion via iter_lines and aiter_lines

HighCVSS 8.2
Published
Updated
Exploit status
No public exploit known

Description

Pydantic httpx2 through 2.17.0 contains an unbounded memory allocation vulnerability in LineDecoder that allows malicious servers to exhaust client memory by sending decompressed bodies without newlines. Attackers can return highly compressed gzip, deflate, brotli or zstd responses that inflate roughly 1000 to 1, terminating clients reading via iter_lines() or aiter_lines().

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi httpx2 <= 2.17.0 after 2.17.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi httpx2 <= 2.17.0 No fix listed

References