Skip to main content

@fastify/http-proxy CVE-2026-133111

| EUVDEUVD-2026-130502 MEDIUM
Missing Origin Validation in WebSockets (CWE-1385)
2026-11-19 openjs
5.9
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure logged-in victim to malicious page
  2. Delivery
    Page opens WebSocket to proxy endpoint
  3. Exploit
    Proxy drops Origin, forwards session cookie
  4. Execution
    Upstream trusts missing-Origin authenticated handshake
  5. Impact
    Read and send messages as victim

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware safety mechanism
Exploitation Conditions

Exploitable only when @fastify/http-proxy is registered with websocket: true AND uses the default rewriteRequestHeaders (or a custom one that does not add an Origin header), so the plugin forwards the client Cookie but never sets the ws origin option. The upstream WebSocket server must authenticate the handshake via cookie and must treat a missing Origin as a trusted non-browser client (e.g. gorilla/websocket's default CheckOrigin, or Spring/Phoenix same-origin checks). The victim's browser must attach the authenticating cookie to the cross-site handshake - a SameSite=None cookie from any site, or any cookie from a same-site origin such as a sibling subdomain. Limiting factors: requires an authenticated victim to actively visit an attacker-controlled page (UI:R); does not affect upstreams that reject missing-Origin handshakes or that do not rely on Origin; and is neutralized by a custom rewriter that forwards Origin or by origin validation before the proxy.

Impact

This is a genuine but conditional cross-site WebSocket hijacking (CWE-1385) issue, not a high-CVSS-but-trivial-risk inflation. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N, base 5.9 Medium) aligns well with the mechanism: network-reachable (AV:N) and unauthenticated from the attacker's side (PR:N), but gated by required victim interaction (UI:R - a logged-in user must visit a malicious page) and by AC:H, which here reflects real deployment preconditions outside the attacker's control (the upstream must rely on Origin checks and treat a missing Origin as trusted, and the browser must attach the authenticating cookie). The decision label is 'this_month', indicating meaningful but non-emergency priority. No EPSS score is provided, and there is no CISA KEV listing and no confirmed public exploit code - only a vendor GHSA advisory and the OpenJS CNA page are referenced - so exploitation status is 'no public exploit identified at time of analysis'. Confidentiality is rated High (an attacker can read messages on the victim's behalf) with Low integrity (sending messages) and no availability impact. The main signals are consistent with each other: a serious-but-constrained authorization/origin flaw whose real-world blast radius depends heavily on the specific upstream's Origin-handling and cookie SameSite posture rather than on broad, automatable mass exploitation.

Exploit ScenarioDerived

A logged-in user with an active session to an application behind @fastify/http-proxy (configured with websocket: true and the default header rewriter) visits a page controlled by an attacker. That page opens a WebSocket back through the proxy; the proxy forwards the user's cookie but drops the browser's Origin header, so an upstream that only rejects foreign origins (and trusts a missing Origin as a non-browser client) accepts the authenticated handshake, letting the attacker read or send WebSocket messages as the victim. No public exploit code is identified, though the vendor advisory describes the technique in detail.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

Cross-site WebSocket hijacking affects @fastify/http-proxy versions 7.1.0 through 11.6.9 when the plugin is registered with websocket: true: the default header rewriter forwards the client's Cookie header but the plugin never sets the ws origin option, so the browser's Origin header is dropped on the upstream handshake. The missing Origin is treated by many upstream WebSocket servers (for example gorilla/websocket's default CheckOrigin, and Spring/Phoenix same-origin checks) as a trusted non-browser client, so a malicious page visited by a logged-in user can open a WebSocket through the proxy and read or send messages on that user's behalf. Rated CVSS 5.9 (AV:N/AC:H/PR:N/UI:R, C:H/I:L), it is exploitable unauthenticated but requires an authenticated victim to visit an attacker-controlled page plus conditions on cookie SameSite attributes and upstream origin handling; no public exploit code was identified at time of analysis and there is no KEV listing, and the vendor-released fix is version 11.6.10.

RemediationAI

Upgrade to @fastify/http-proxy 11.6.10 or later, the vendor-released patch; after this version the plugin forwards the client's Origin header on every WebSocket upgrade, including reconnects, unless the application sets wsClientOptions.origin or supplies an Origin header itself. Be aware of the behavioural side effect: upstreams that require Origin to match their own Host will now receive their own address as Host and the proxy client's origin in Origin, so those origins must be allowlisted upstream. Where upgrading immediately is not possible, two workarounds are documented in the GHSA advisory: forward the client origin from a custom rewriter passed in wsClientOptions, for example rewriteRequestHeaders: (headers, request) => ({ ...headers, cookie: request.headers.cookie, origin: request.headers.origin }), which restores the origin signal but requires the upstream to accept the proxied client origins; or configure the upstream to reject WebSocket handshakes that carry no Origin header, which closes this path but will also break legitimate non-browser WebSocket clients that send no Origin. See https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-w3r4-6w5h-3vrc for the full advisory text.

Affected VersionsENISA

@fastify/http-proxy 7.1.0 <11.6.10

Affected Packages

euvd fastify_http_proxy fix: 11.6.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-1385, Missing Origin Validation in WebSockets, appearing in an npm Fastify plugin that proxies HTTP and WebSocket traffic. When the plugin upgrades a client connection to the upstream, it builds the upstream handshake headers via rewriteRequestHeaders; the default implementation copies only the Cookie header, and because the ws client origin option is never populated, the browser-supplied Origin header is not transmitted to the upstream. Origin checking is the primary browser-side defence against cross-site WebSocket hijacking, since the WebSocket handshake is not subject to the same-origin policy in the way fetch/XHR are. Upstream servers that permit a missing Origin - gorilla/websocket's default CheckOrigin and the same-origin checks in Spring and Phoenix are cited - therefore accept the proxied handshake as a non-browser client even though it originates from a foreign page and carries the victim's cookie. Exploitation additionally depends on the browser attaching the authenticating cookie to the cross-site handshake, meaning a SameSite=None cookie from any site or any cookie from a same-site origin such as a sibling subdomain. The attack surface is limited: upstreams that reject missing-Origin handshakes or do not rely on Origin are unaffected, and the assessed vector (AC:H, UI:R) reflects these deployment and victim-interaction preconditions rather than a trivially reachable bug.

Know when Fastify Http Proxy gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (openjs) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI 5.9 MEDIUM

Network-reachable with no attacker privileges (PR:N) but requires victim to visit a malicious page (UI:R) and depends on upstream Origin/cookie preconditions (AC:H); reads messages (C:H) and sends some (I:L), no availability impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Nov 19, 2026 - 20:04 EUVD

DescriptionCVE.org

@fastify/http-proxy is a Fastify plugin that proxies HTTP and WebSocket traffic to an upstream server. In versions from 7.1.0 up to but not including 11.6.10, when the plugin is registered with websocket support enabled, it opens the upstream WebSocket connection with a header set built by the default header rewriter, which forwards the client cookie but never sets the upstream origin option, so the browser origin header is dropped while the authenticating cookie is forwarded. Many WebSocket servers defend against cross-site hijacking by checking the origin and treat a missing origin as a trusted non-browser client, so behind the proxy that check never sees the foreign origin. A malicious page visited by a logged-in user can therefore open a WebSocket through the proxy to an upstream that authenticates the handshake with a cookie, and read or send messages on the user's behalf. The issue is fixed in @fastify/http-proxy 11.6.10, and users should upgrade to 11.6.10 or later. As a workaround, provide a header rewriter that sets a correct origin, or validate the origin before the proxy.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
official Fastify npm proxy plugin with moderate adoption, subset enables websocket
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-15631 CRITICAL
10.0 Jul 18

We are tasked with synthesizing data from multiple sources about CVE-2026-15631 into a comprehensive JSON analysis. The

CVE-2026-16117 CRITICAL
10.0 Jul 18

Proxy prefix-rewrite bypass in @fastify/http-proxy (versions up to and including 11.5.0) lets remote unauthenticated att

CVE-2021-21322 CRITICAL
9.8 Mar 02

fastify-http-proxy is an npm package which is a fastify plugin for proxying your http requests to another server, with h

CVE-2026-120213 CRITICAL
9.1 Nov 02

Path-restriction bypass in @fastify/http-proxy 9.0.0 through 11.6.5 lets unauthenticated remote attackers escape an inte

CVE-2026-33805 CRITICAL
9.0 Apr 15

HTTP header smuggling in @fastify/reply-from ≤12.6.1 and @fastify/http-proxy ≤11.4.3 allows remote unauthenticated attac

CVE-2026-85124 HIGH
7.5 Sep 03

Path traversal in @fastify/http-proxy before 11.6.2 permits unauthenticated remote attackers to bypass the prefix and re

CVE-2026-129502 HIGH
7.5 Nov 19

Denial of service in @fastify/http-proxy 9.4.0 through 11.6.9 lets remote unauthenticated attackers crash the Node.js pr

CVE-2026-129500 HIGH
7.5 Nov 19

Unhandled socket errors in @fastify/http-proxy versions 9.0.0 up to but not including 11.6.10 allow remote unauthenticat

CVE-2026-130647 HIGH
7.5 Nov 19

Denial of service in @fastify/http-proxy (9.0.0 up to but not including 11.6.10) lets a single unauthenticated connectio

CVE-2026-127060 MEDIUM
6.5 Nov 19

Path traversal prefix escape in @fastify/http-proxy before 11.6.10 lets remote attackers reach upstream paths outside th

CVE-2026-120214 MEDIUM
5.9 Nov 02

@fastify/http-proxy 11.6.0 through 11.6.2 lets an unauthenticated remote attacker reach upstream resources outside the i

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy