CVE-2026-84378: HTTPX2: Quadratic SSE line buffering can cause CPU denial of service

Published Sep 2, 2026
·
Updated

HTTPX2 is a next generation HTTP client for Python. From 2.5.0 until 2.10.0, the HTTPX2 Server-Sent Events parser in src/httpx2/httpx2/sse.py repeatedly copies and rescans buffered text in SSELineDecoder.decode() when an attacker-controlled or compromised SSE endpoint splits one unterminated line across many response chunks. The behavior affects httpx2.Client.sse() and httpx2.AsyncClient.sse(), and the total processing work grows quadratically with the line length, allowing a crafted stream to consume excessive CPU and block a synchronous worker or asynchronous event loop. This issue is fixed in version 2.10.0.

Affected Software

1 affected component
HTTPX2>=2.5.0<2.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade httpx2 to a version that resolves this vulnerability.

    Fixed in 2.10.0

Event History

Sep 2, 2026
CVE Published
via MITRE·05:54 PM
Data Sourced
via MITRE·05:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:21 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using httpx2.Client.sse() or httpx2.AsyncClient.sse() with affected HTTPX2 versions from 2.5.0 up to, but not including, 2.10.0 are exposed when they consume SSE data from an attacker-controlled or compromised endpoint.

2

What must an attacker do to trigger the CPU exhaustion?

The attacker must cause the SSE endpoint to send a single unterminated line split across many response chunks. Repeated buffering, copying, and rescanning of that line makes processing work grow quadratically as the line length increases.

3

What is the operational impact?

A crafted stream can consume excessive CPU. It can block a synchronous worker using Client.sse() or an asynchronous event loop using AsyncClient.sse().

4

What is the remediation?

Upgrade HTTPX2 to version 2.10.0, which fixes the issue.

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