All vulnerabilities

PyPI

CVE-2026-142230

httpx2 through 2.17.0 Memory Exhaustion via iter_lines and aiter_lines

Severity
High 8.2
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Weakness
Allocation without limits (CWE-770)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Sources
CVE Program

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().

From the CVE Program.

Affected software

SoftwareAffected versions
httpx2PyPI · osv:PyPI:httpx2
  • Every version up to 2.17.0

About httpx2

Weekly downloads (PyPI)
111,397,315PyPI Stats, 2 Dec 2026

This is the only vulnerability in httpx2 in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142230