CVE Catalog

CVE-2026-132651

MediumCVSS 5.3
Published: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.48%

43th percentile - higher than 43% of all known CVEs

Summary

The httpx2 library (versions 2.6.0 up to but excluding 2.18.0) reassembled fragmented WebSocket messages by copying the whole accumulated buffer on every continuation frame, leading to quadratic complexity. A WebSocket server or on-path attacker can split a message into many tiny frames, blocking the GIL in the synchronous client or the event loop in the asynchronous client.

Risk Assessment

An attacker could cause resource exhaustion (CPU/time) and block the client application, leading to denial of service. The risk affects applications connecting to untrusted WebSocket endpoints.

Recommendation

Update httpx2 to version 2.18.0 or later. Until then, keep max_message_size_bytes small and connect only to trusted wss:// endpoints.

Other vulnerabilities in httpx2

See all
Original NVD description (English source)

httpx2 reassembled fragmented WebSocket messages by appending each continuation frame to a bytes buffer, copying the whole accumulated message on every frame. A WebSocket server, or an on-path attacker on an unencrypted ws:// connection, can split messages into many tiny continuation frames so that reassembly takes time quadratic in the number of frames. Reassembly holds the GIL in the synchronous client and blocks the event loop in the asynchronous client. Applications are affected when they open a WebSocket session with client.websocket() or httpx2.websocket() to an untrusted endpoint, using httpx2 from 2.6.0 up to (but excluding) 2.18.0. From 2.10.0, the default max_message_size_bytes limit of 64 KiB bounds the work per message, so sustained load needs many messages; versions 2.6.0 to 2.9.1 have no such limit. The issue is fixed in 2.18.0, which collects fragments in a list and joins them once when the final frame arrives. Until then, keep max_message_size_bytes small and connect only to trusted wss:// endpoints.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS