CVE-2026-129502
Description
A flaw was found in @fastify/http-proxy. This vulnerability allows a remote, unauthenticated attacker to trigger a Denial of Service (DoS) by sending a specially crafted WebSocket upgrade request containing an invalid target path or URL fragment. Because the application fails to properly handle upstream connection errors, the connection is left open without error handling, resulting in an unhandled exception that crashes the server process when subsequent data is received.
Statement
This vulnerability is rated as Important rather than Moderate because an unauthenticated remote attacker can terminate the entire Node.js server process with a single crafted request, causing an immediate denial of service. In Red Hat environments, exposure is restricted to applications that explicitly configure the reverse proxy plugin with optional WebSocket support enabled. Services utilizing the proxy purely for standard HTTP traffic or deployed behind ingress proxies that sanitize request paths are not vulnerable to this termination flaw.
Mitigation
Disable optional WebSocket support:
If WebSocket forwarding is not required by the application, ensure WebSocket proxying is disabled by setting the `websocket` option to false or omitting it when registering the @fastify/http-proxy plugin.
Filter ingress traffic:
Deploy an edge reverse proxy or web application firewall (e.g., NGINX, HAProxy, or an API gateway) in front of the application to inspect incoming HTTP requests and reject WebSocket upgrade requests containing URL fragments or invalid URI targets before they reach the Node.js server.
Caveats:
Disabling WebSocket proxying will prevent legitimate WebSocket traffic from reaching upstream services. Applying application configuration adjustments requires restarting the Node.js service, which will temporarily interrupt active connections.
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 Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.5 | N/A | 7.5 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | None | N/A | None |
| Integrity Impact | None | N/A | None |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Understanding the Weakness (CWE)
Availability,Confidentiality
Technical Impact: DoS: Crash, Exit, or Restart; Read Application Data
An uncaught exception could cause the system to be placed in a state that could lead to a crash, exposure of sensitive information, or other unintended behaviors.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.