Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-132651— Quadratic WebSocket fragment reassembly causes CPU denial of service

Quick assessment

Affected
pydantic httpx2
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

httpx2 在重组分段的 WebSocket 消息时,通过将每个继续帧追加到一个字节缓冲区,并在每一帧都复制整个已累积的消息。WebSocket 服务器,或者在未加密的 ws:// 连接上的路径中间攻击者,可以将消息拆分成许多微小的继续帧,从而使重组耗时与帧数成二次方关系。重组在同步客户端中持有 GIL,在异步客户端中会阻塞事件循环。 当应用使用 client.websocket() 或 httpx2.websocket() 向不受信任的端点打开 WebSocket 会话,且使用 httpx2 版本从 2.6.0

CVSS 5.3 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-132651

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Quadratic WebSocket fragment reassembly causes CPU denial of service
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
算法复杂性
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
pydantic httpx2 2.6.0 ~ 2.18.0 -

II. Public POCs for CVE-2026-132651

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-132651

请登录查看更多情报信息。

Other References for CVE-2026-132651 (1)

Same Patch Batch · pydantic · 2026-12-04 · 3 CVEs total

CVE-2026-142020 5.9 MEDIUM Unbounded iter_lines() and aiter_lines() buffering enables memory exhaustion via decompres
CVE-2026-140868 3.7 LOW Proxy-Authorization header not stripped on cross-origin redirects leaks proxy credentials

IV. Related Vulnerabilities