Bug 2590987 - CVE-2026-132651 python-httpx2: httpx2: Denial of Service via inefficient WebSocket message reassembly [fedora-all]
Summary: CVE-2026-132651 python-httpx2: httpx2: Denial of Service via inefficient WebS...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-httpx2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard: {"flaws": ["9132ca91-610e-4de3-9ce0-6...
Depends On:
Blocks: CVE-2026-132651
TreeView+ depends on / blocked
 
Reported: 2026-12-04 15:35 UTC by Avinash Hanwate
Modified: 2026-12-04 15:35 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2026-12-04 15:35:06 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.


Note You need to log in before you can comment on or make changes to this bug.