Intel

AIKIDO-2026-518098

httpx2 is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-f2fp-rgf2-35cp Published Yesterday

59

Medium Risk

This Affects:

PYTHONhttpx2
2.5.0 - 2.9.1
Fixed in 2.10.0
Are you affected? Scan for Free

TL;DR

The Server-Sent Events parser buffers event data across response chunks and repeatedly copies and rescans the accumulated text when chunks arrive without line terminators. An untrusted SSE endpoint can stream crafted data to consume excessive client CPU, stalling worker threads or the event loop and degrading availability. The fix parses incrementally and enforces a default maximum event size.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you consume Server-Sent Events from an untrusted endpoint.

Background info

httpx2 is vulnerable to Denial of Service (DoS) in versions 2.5.0 - 2.9.1.

How to fix this

Upgrade the httpx2 library to the patch version.