Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-84378 EUVD-2026-70242GHSA-f2fp-rgf2-35cpPYSEC-2026-3847

HTTPX2: Quadratic SSE line buffering can cause CPU denial of service

Published Sep 2, 2026 · Updated Sep 2, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
pydantic httpx2 >= 2.5.0, < 2.10.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-httpx2 2.12.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-httpx2 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI httpx2 >= 2.5.0, < 2.10.0 2.10.0 GHSA-f2fp-rgf2-35cp

References