CVE-2026-142020
Last modified
CVE-2026-142020 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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.
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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| pydantic | httpx2 | < 2.18.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142020?
How severe is CVE-2026-142020?
How do I fix CVE-2026-142020?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-142009A flaw has been found in OpenCart up to 4.1.0.4. The impacte…2.4
- CVE-2026-142010A vulnerability has been found in OpenCart up to 4.1.0.4. Th…2.4
- CVE-2026-142011A vulnerability was found in OpenCart up to 4.1.0.4. This im…3.5
- CVE-2026-142012A vulnerability was determined in OpenCart up to 4.1.0.4. Af…2.4
- CVE-2026-142014A vulnerability was identified in usememos memos up to 0.31.…2.4
- CVE-2026-14202Observable response discrepancy vulnerability in Bilin Softw…5.3
- CVE-2026-142023A security vulnerability has been detected in BolinTech Drea…6.5
- CVE-2026-142024A vulnerability was detected in n8n-io n8n up to 2.50.5. Thi…6.3
- CVE-2026-142025A flaw has been found in n8n-io n8n up to 2.50.5. Impacted i…6.3
- CVE-2026-142029A vulnerability was found in TCL UnionTV R609. Impacted is a…7.3
- CVE-2026-14203The Smart Manager WordPress plugin before 8.92.0 does not p…4.8
- CVE-2026-142032A weakness has been identified in Frangoteam FUXA up to 1.3.…5.3
Are you affected by CVE-2026-142020?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
