CVE-2026-130647

Description

A flaw was found in @fastify/http-proxy. A remote, unauthenticated attacker can cause a Denial of Service (DoS) by sending a pipelined WebSocket upgrade request behind a standard HTTP request on an unencrypted connection followed by a connection reset. Because the proxy fails to attach an error handler to the socket when rejecting the concurrent upgrade, the subsequent connection reset triggers an unhandled exception that terminates the server process.

Statement

This vulnerability is rated as an Important severity because an unauthenticated remote attacker can terminate the underlying Node.js application process with minimal effort, resulting in a persistent denial of service. The failure condition occurs only when services proxy cleartext HTTP traffic with WebSocket forwarding enabled, causing unhandled socket errors upon sudden client disconnections. Environments that enforce encrypted connections or terminate TLS at an ingress proxy prior to the Fastify instance are not exposed to this vulnerability.

Mitigation

To reduce exposure without applying code fixes, implement one of the following operational controls:

1. Enforce TLS encryption: Serve all incoming traffic over HTTPS/TLS or terminate TLS at an upstream reverse proxy or load balancer before forwarding requests to the Fastify instance. Cleartext connections are required to trigger this vulnerability, so enforcing TLS eliminates the attack vector.

2. Disable WebSocket proxying: If WebSocket forwarding is not required by your application, disable the `websocket` option in the `@fastify/http-proxy` plugin configuration.

Applying application or proxy configuration adjustments requires restarting the relevant service:

systemctl restart <application-service>

Caveats: Disabling WebSocket proxying prevents WebSocket connections from being forwarded upstream. Restarting or reloading the application service causes a brief interruption to active connections and traffic.

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 Score7.5N/A7.5
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/ANone
Integrity ImpactNoneN/ANone
Availability ImpactHighN/AHigh

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

Want to get errata notifications? Sign up here.