CVE-2026-132651

Description

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.

Statement

This vulnerability has been evaluated as having Moderate impact because exploitation requires a client application using httpx2 to connect to a malicious WebSocket server or an unencrypted connection subject to active tampering. Inefficient buffer handling during fragmented frame reassembly can cause excessive CPU utilization or block the execution loop, leading to localized denial of service. The flaw does not allow remote code execution or unauthorized access to sensitive data, and applications communicating exclusively over secure TLS connections (wss://) with trusted hosts are not affected by external network manipulation.

Mitigation

To mitigate this vulnerability, apply operational and configuration controls to applications using the httpx2 WebSocket client:

1. Connect exclusively to trusted WebSocket endpoints using encrypted connections (wss://) to prevent on-path network attackers from manipulating frame fragmentation.
2. Limit the maximum message size by setting `max_message_size_bytes` to a strict lower limit (e.g., 64 KiB or less) in application configurations to bound potential reassembly processing time per message.

Caveat: Enforcing lower maximum message size limits may cause application requests expecting larger WebSocket payloads to be rejected. Restricting connections to secure endpoints may require updating application configuration files or endpoint definitions; affected application services must be restarted for configuration changes to take effect.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.3N/A5.3
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/ANone
Integrity ImpactNoneN/ANone
Availability ImpactLowN/ALow

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Understanding the Weakness (CWE)

Other

Technical Impact: Reduce Performance

When building a string via a looping feature (e.g., a FOR or WHILE loop), the use of += to append to the existing string will result in the creation of a new object with each iteration, which can be inefficient in comparison with use of text buffer data elements. This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this could be influenced to create performance problems.

Frequently Asked Questions

Want to get errata notifications? Sign up here.