CVE-2026-142230: httpx2 through 2.17.0 Memory Exhaustion via iter_lines and aiter_lines

Published Dec 2, 2026
·
Updated

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 iterlines() or aiterlines().

Affected Software

1 affected component
pypi/httpx2<=2.17.0

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using pypi/httpx2 through version 2.17.0 are exposed when they consume a response with iter_lines() or aiter_lines(). Exposure depends on receiving a crafted response from a malicious server.

2

What does an attacker need to do to trigger the condition?

An attacker needs to make the client read a compressed response body that contains no newline characters through iter_lines() or aiter_lines(). The response can use gzip, deflate, brotli, or zstd compression and expand by roughly 1000 times when decompressed.

3

How can I determine whether my application may be affected?

Check whether your dependency version is 2.17.0 or earlier, and review code paths that call iter_lines() or aiter_lines() on HTTP responses. Those paths are relevant if they can connect to a malicious or attacker-controlled server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203