Vulnerability · Published Sep 2, 2026 · Assigned by GitHub_M
CVE-2026-84378HTTPX2: Quadratic SSE line buffering can cause CPU denial of service
Medium 5.9
In plain English
A medium-severity security flaw in httpx2 from pydantic. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | python-httpx2 | 2.12.0-1 | DEBIAN-CVE-2026-84378 |
| PyPI | httpx2 | 2.10.0 | GHSA-f2fp-rgf2-35cp |
| PyPI | httpx2 | 2.10.0 | PYSEC-2026-3847 |
| Ubuntu:26.10 | python-httpx2 | no fix listed | UBUNTU-CVE-2026-84378 |
Affected products (as reported)
Weakness: CWE-407 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/pydantic/httpx2/security/advisories/GHSA-f2fp-rgf2-35cp x_refsource_CONFIRM
- https://github.com/pydantic/httpx2/pull/1071 x_refsource_MISC
- https://github.com/pydantic/httpx2/pull/1117 x_refsource_MISC
- https://github.com/pydantic/httpx2/commit/cbfc0e04ef6507da29ccbb3b9c2e5b23dd693414 x_refsource_MISC
- https://github.com/pydantic/httpx2/releases/tag/v2.10.0 x_refsource_MISC