HTTPX2: Quadratic SSE line buffering can cause CPU denial of service
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-84378
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 22:32 UTC · Revision 1
Source evidence
HTTPX2: Quadratic SSE line buffering can cause CPU denial of service
core-osv · Original sourcePublished 2 Sept 2026, 17:54 UTC
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.
osv:CVE-2026-84378
Complete source record
{
"id": "6299eaf47e2d5a19042f20b21dcc71c6e2c6692ed9361e6689d3f90cd0468d33",
"url": "https://osv.dev/vulnerability/CVE-2026-84378",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "HTTPX2: Quadratic SSE line buffering can cause CPU denial of service",
"summary": "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.",
"evidence": "osv:CVE-2026-84378",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-84378",
"aliases": [
"CVE-2026-84378",
"GHSA-f2fp-rgf2-35cp",
"PYSEC-2026-3847"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/pydantic/httpx2",
"type": "GIT",
"events": [
{
"introduced": "9b7ee8ec8c06e8f35a9e7fb437c6fb2f552108bf"
},
{
"fixed": "a966320e75477b8c55ee78fdb8f57ead6a574cb0"
},
{
"fixed": "cbfc0e04ef6507da29ccbb3b9c2e5b23dd693414"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.5.0"
},
{
"fixed": "2.10.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "cbfc0e04ef6507da29ccbb3b9c2e5b23dd693414"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "a966320e75477b8c55ee78fdb8f57ead6a574cb0"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.10.0"
}
]
}
}
],
"versions": [
"v2.9.1",
"v2.9.0",
"v2.8.0",
"v2.7.0",
"v2.6.0",
"v2.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-84378.json"
}
}
],
"modified": "2026-10-28T02:30:24.141223581Z",
"provider": "osv",
"references": [
"https://github.com/pydantic/httpx2/releases/tag/v2.10.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84378.json",
"https://github.com/pydantic/httpx2/security/advisories/GHSA-f2fp-rgf2-35cp",
"https://nvd.nist.gov/vuln/detail/CVE-2026-84378",
"https://github.com/pydantic/httpx2/commit/cbfc0e04ef6507da29ccbb3b9c2e5b23dd693414",
"https://github.com/pydantic/httpx2/pull/1071",
"https://github.com/pydantic/httpx2/pull/1117"
],
"provider_metadata": {
"cwe_ids": [
"CWE-407"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84378.json"
}
},
"related_cves": [
{
"value": "CVE-2026-84378",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 490563,
"published_at": "2026-09-02T17:54:19.431+00:00"
}