CVE-2026-142020

MediumCVSS 5.9/10Last modified Dec 4, 2026

Description

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.

Metrics

CVSS 3.1 5.9/10CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness enumeration

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 4, 2026
Last modified
Dec 4, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-1420236.5A security vulnerability has been detected in BolinTech Dream FTP Server 1.02. This vulnerability affects unknown code of the component LISTCVE-2026-1420246.3A vulnerability was detected in n8n-io n8n up to 2.50.5. This issue affects the function handleAction of the file packages/cli/src/modules/aCVE-2026-1420256.3A flaw has been found in n8n-io n8n up to 2.50.5. Impacted is the function publish of the file packages/cli/src/workflows/publication/workflCVE-2026-1420297.3A vulnerability was found in TCL UnionTV R609. Impacted is an unknown function of the file /vendor/etc/tbrowser2/config/crt/client/client_ceCVE-2026-142034.8The Smart Manager WordPress plugin before 8.92.0 does not properly encode a post field before rendering it into an HTML attribute in its maCVE-2026-1420325.3A weakness has been identified in Frangoteam FUXA up to 1.3.5. This impacts the function getSanitizedSettings of the file server/api/index.jCVE-2026-1420338.3An out-of-bounds read and write vulnerability in WatchGuard Endpoint Security's malware scanning engine allows a remote, unauthenticated attCVE-2026-1420348.7An integer overflow vulnerability in WatchGuard Endpoint Security's malware scanning engine's PE file parsing allows a remote, unauthenticatCVE-2026-1420358.7A divide-by-zero vulnerability in WatchGuard Endpoint Security's OLE2 file parser, used by the malware scanning engine, allows a remote, unaCVE-2026-1420368.7An out-of-bounds read vulnerability in WatchGuard Endpoint Security's malware scanning engine allows a remote, unauthenticated attacker to cCVE-2026-1420378.7A resource exhaustion vulnerability in WatchGuard Endpoint Security's malware scanning engine allows a remote, unauthenticated attacker to cCVE-2026-1420388.7An uncontrolled resource consumption vulnerability in the malware scanning engine's PowerPoint document parser allows a remote, unauthentica
CVE-2026-142020: Medium severity, CVSS 5.9 | Vulnix