CVE-2026-132651
Received Received - Intake

Denial of Service in httpx2 WebSocket Reassembly

Vulnerability report for CVE-2026-132651, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: 7cec5f2f-3032-4006-8740-31f605ffab5f

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-407 An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects httpx2 library versions 2.6.0 to 2.17.x. It involves WebSocket message reassembly where each continuation frame triggers a full buffer copy, causing quadratic time complexity (O(N^2)) operations. This leads to excessive CPU usage when many small fragments are sent by an attacker.

Detection Guidance

Monitor CPU usage spikes during WebSocket connections, especially with fragmented messages. Check httpx2 version with pip show httpx2 and verify if it is between 2.6.0 and 2.17.x. Inspect network traffic for unusually high numbers of small WebSocket frames.

Impact Analysis

An attacker can exploit this to cause CPU denial-of-service by sending fragmented messages over unencrypted ws:// connections or compromised WebSocket servers. This impacts availability of applications using httpx2's WebSocket functionality.

Mitigation Strategies

Upgrade httpx2 to version 2.18.0 or later. If upgrading is not possible, restrict WebSocket connections to trusted wss:// endpoints and set a small max_message_size_bytes limit. Avoid using unencrypted ws:// connections.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-132651. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...