Quadratic WebSocket reassembly in httpx2 causes CPU denial of service
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 11 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-407.
Summary
The httpx2 package from pydantic, from 2.6.0 before 2.18.0, reassembles fragmented WebSocket messages by copying the whole accumulated buffer for every continuation frame. A WebSocket server, or an on-path attacker on an unencrypted ws:// connection, can send many tiny frames so that reassembly takes quadratic time (CWE-407). This holds the GIL in the synchronous client and blocks the event loop in the asynchronous client. From 2.10.0, the default max_message_size_bytes limit of 64 KiB bounds the work per message, while versions 2.6.0 to 2.9.1 have no such limit.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade httpx2 from pydantic to version 2.18.0. Red Hat rates this Moderate and lists no available fix for Ansible Automation Orchestrator 2026, Exploit Intelligence, Lightspeed Core, Migration Toolkit for Applications 8, OpenShift Lightspeed, and other products. Until a fix is applied, keep max_message_size_bytes small and connect only to trusted wss:// endpoints.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA httpx2 (pydantic) Fixed in 2.18.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
pydantic httpx2 2.18.0
3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-104104 Unbounded line buffering in httpx2 iter_lines() exhausts memoryPriority MEDIUM 42
- TI-2026-104103 Proxy-Authorization header leaks proxy credentials on cross-origin redirectsPriority LOW 33
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Ansible Automation Orchestrator 2026 | Affected | No fix yet: Fix deferred |
| Exploit Intelligence | Affected | No fix yet: Fix deferred |
| Lightspeed Core | Affected | No fix yet: Fix deferred |
| Migration Toolkit for Applications 8 | Affected | No fix yet: Fix deferred |
| OpenShift Lightspeed | Affected | No fix yet: Fix deferred |
| Red Hat AI Inference Server | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux command line assistant | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Virtualization 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Virtualization 5 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-12-04 Threatist record created from CVE-2026-132651
- 2026-12-04 Alias added: GHSA-4p8q-h859-jh8m
- 2026-12-04 Affected versions changed · Red Hat
- 2026-12-04 CVSS score added · Red Hat
References
More pydantic vulnerabilities
- TI-2024-03518 Regular expression denial of service in Pydantic < 2.4.0 CVSS 3.1HIGH 7.5
- TI-2026-57990 HTTPX2: Multipart part header injection via unvalidated file Content-Type and custom headers CVSS 3.1MEDIUM 5.3
- TI-2026-41916 Path traversal in pydantic-settings CVSS 3.1MEDIUM 5.3
- TI-2026-20687 Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling CVSS 3.1HIGH 8.6
- TI-2026-104104 Unbounded line buffering in httpx2 iter_lines() exhausts memory CVSS 3.1MEDIUM 5.9
- TI-2026-94639 Harness `ToolOutputLimits` ANSI stripping can take quadratic time, blocking the event loop CVSS 3.1HIGH 7.5
Sources
- CVE-2026-132651 · CVE Program
- CVE-2026-132651 · NVD
- GHSA-4p8q-h859-jh8m · GitHub Advisory Database · CC BY 4.0
- CVE-2026-132651 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences