Bug 2590876 (CVE-2026-132651)

Summary: CVE-2026-132651 httpx2: httpx2: Denial of Service via inefficient WebSocket message reassembly
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alinfoot, anpicker, ansingla, bbrownin, blitton, dfreiber, dkeler, drow, dtrifiro, dymurray, ebourniv, gbenhaim, hasun, jburrell, jdobes, jfula, jmitchel, jowilson, kaycoth, kgaikwad, mhayden, mwoodson, niyer, nyancey, ometelka, orabin, prwatson, ptisnovs, sbunciak, sdoran, suppawar, syedriko, tguha, thason, twaugh, vkumar, weaton, xdharmai
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in httpx2. A remote server or network attacker can exploit this vulnerability by sending WebSocket messages split into numerous tiny continuation frames. This forces repetitive buffer copying during reassembly, consuming excessive CPU resources and causing a Denial of Service (DoS) by blocking application processing.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2590987    
Bug Blocks:    

Description OSIDB Bzimport 2026-12-04 12:05:17 UTC
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.