CVE-2026-142230: Vulnerability in Pydantic Httpx2

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

CWE-770

Exploitation
None confirmed
Severity
8.2 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Advisory ID
GHSA-w6q7-whg6-3hvv
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
Weakness
CWE-770
Published
2 Dec 2026
Last change
5 Dec 2026

Affected products

Affected versions and the first fixed release

  • Pydantic Httpx2 Through 2.17.0; Version 0 ≤2.17.0. No fixed version recorded

Advisories

Vendor and security advisories

Related