CVE-2026-129502 in fastify-http-proxyinfo

Summary

by MITRE • 11/20/2026

@fastify/http-proxy is a Fastify plugin that proxies HTTP and WebSocket traffic to an upstream server. In versions from 9.4.0 up to but not including 11.6.10, when the plugin is registered with websocket support enabled, a WebSocket upgrade request whose path carries a URL fragment is matched by the router and answered with a successful upgrade before the upstream link is created. Building the upstream target then throws, the error is only logged, and the accepted client socket is left open with no error listener, so the next frame the client sends becomes an unhandled error and terminates the Node.js process. A request target that is not a valid URL reference reaching a parameterized prefix triggers the same path. A single unauthenticated upgrade request followed by one frame is enough to crash the server, and it can be repeated to keep the process down. The issue is fixed in @fastify/http-proxy 11.6.10, and users should upgrade to 11.6.10 or later.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/20/2026

The vulnerability identified in versions of @fastify/http-proxy ranging from 9.4.0 up to but not including version 11.6.10 represents a critical denial-of-service condition rooted in improper error handling during WebSocket connection establishment. This Fastify plugin serves as an intermediary for HTTP and WebSocket traffic, forwarding requests to upstream servers. The flaw specifically manifests when the plugin is configured with websocket support enabled and receives a WebSocket upgrade request where the path contains a URL fragment or otherwise constitutes an invalid URL reference that reaches a parameterized prefix. In such scenarios, the internal router incorrectly matches the request and proceeds to answer with a successful HTTP 101 Switching Protocols response before the actual upstream connection link is successfully established. This premature acknowledgment creates a state mismatch where the client believes the WebSocket channel is open while the server-side proxy has not yet initialized the necessary backend resources or error listeners for that specific socket.

The operational impact of this flaw is severe, leading to an unhandled exception that terminates the entire Node.js process. When the plugin attempts to build the upstream target after sending the successful upgrade response, it throws a fatal error because the underlying connection logic fails due to the malformed path. Crucially, the codebase only logs this error rather than handling it gracefully or closing the client socket immediately. Consequently, the accepted client socket remains open but lacks an attached error listener for subsequent frames. When the client sends even a single data frame after receiving the upgrade response, the Node.js runtime encounters an unhandled promise rejection or exception on that socket, causing the process to crash abruptly. This behavior allows any unauthenticated attacker to achieve remote code execution in terms of system availability by simply sending one malformed WebSocket upgrade request followed by one subsequent frame. The attack is highly efficient and repeatable, enabling persistent denial-of-service conditions against services relying on this plugin for real-time communication features.

From a classification perspective, this vulnerability aligns with CWE-754: Improper Check for Unusual or Exceptional Conditions, as the application fails to validate input parameters before proceeding with critical state changes. It also relates to CWE-209: Generation of Error Message Containing Sensitive Information if logs are exposed, though the primary issue is the lack of robust error handling leading to process termination. In terms of MITRE ATT&CK techniques, this exploit maps directly to T1499: Endpoint Denial of Service, specifically under sub-techniques involving resource exhaustion or application crashes via malformed inputs. The attack vector is classified as Network-based and requires no authentication, making it particularly dangerous for public-facing APIs that support WebSocket connections.

To mitigate this risk, organizations must upgrade the @fastify/http-proxy dependency to version 11.6.10 or later immediately. This release includes patches that ensure proper validation of URL paths before initiating the proxy handshake and implement robust error handling mechanisms that prevent unhandled exceptions from crashing the Node.js event loop. Additionally, developers should review their WebSocket implementations to ensure that all client sockets have appropriate error listeners attached regardless of the upgrade outcome. Implementing rate limiting on WebSocket endpoints can also provide a secondary layer of defense by restricting the frequency of connection attempts, thereby reducing the blast radius if similar vulnerabilities are discovered in other components or future versions. Regular dependency auditing and adherence to secure coding practices for network protocols are essential to maintaining system resilience against such denial-of-service attacks.

Responsible

Openjs

Reservation

11/15/2026

Disclosure

11/20/2026

Moderation

accepted

CPE

ready

EPSS

0.00417

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!