PT-2026-168118

CVE-2026-142020

·

Published

2026-12-04

·

Updated

2026-12-04

Description by

CVSS 3.1
5.9
Medium
MetricsAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Response.iter lines() and Response.aiter lines() in httpx2 buffered decoded text without any limit on the length of a line. A server can return a small compressed body that decompresses to a large payload with no line separators, making the client hold the whole decompressed payload in memory before yielding a line. A body of about 65 KiB that decompresses to 64 MiB raises peak memory to about 134 MiB, and memory grows linearly with the decompressed size. The per-chunk decompression limit added for CVE-2026-84382 does not bound this buffer.
Applications are affected when they stream responses from an untrusted origin with iter lines() or aiter lines(), such as NDJSON consumers, log tailers or feed fetchers, using httpx2 before 2.18.0.
The issue is fixed in 2.18.0, which limits a buffered line to 1,048,576 characters by default and raises DecodingError beyond it; max line length adjusts or disables the limit. Until then, stream untrusted responses with iter bytes() or aiter bytes() and enforce a size limit, or request Accept-Encoding: identity.
Exploitability
Fix
Researchers
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾