{"resultsPerPage":1,"startIndex":0,"totalResults":1,"format":"NVD_CVE","version":"2.0","timestamp":"2026-12-05T12:59:22.918","vulnerabilities":[{"cve":{"id":"CVE-2026-142020","sourceIdentifier":"7cec5f2f-3032-4006-8740-31f605ffab5f","published":"2026-12-04T12:18:35.300","lastModified":"2026-12-04T12:18:35.300","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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.\n\nApplications 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.\n\nThe 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."}],"affected":[{"source":"7cec5f2f-3032-4006-8740-31f605ffab5f","affectedData":[{"vendor":"pydantic","product":"httpx2","defaultStatus":"unaffected","collectionURL":"https://pypi.org","packageName":"httpx2","repo":"https://github.com/pydantic/httpx2","versions":[{"version":"0","lessThan":"2.18.0","versionType":"python","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"7cec5f2f-3032-4006-8740-31f605ffab5f","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":5.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":2.2,"impactScore":3.6}]},"weaknesses":[{"source":"7cec5f2f-3032-4006-8740-31f605ffab5f","type":"Secondary","description":[{"lang":"en","value":"CWE-409"}]}],"references":[{"url":"https://github.com/pydantic/httpx2/security/advisories/GHSA-8xx6-hgc6-gc2m","source":"7cec5f2f-3032-4006-8740-31f605ffab5f"},{"url":"https://github.com/pydantic/httpx2/security/advisories/GHSA-9333-m6rv-gmq9","source":"7cec5f2f-3032-4006-8740-31f605ffab5f"}]}}]}