Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure logged-in victim to malicious page
-
DeliveryPage opens WebSocket to proxy endpoint
-
ExploitProxy drops Origin, forwards session cookie
-
ExecutionUpstream trusts missing-Origin authenticated handshake
-
ImpactRead 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
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.
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Fastify Http Proxy
View allWe are tasked with synthesizing data from multiple sources about CVE-2026-15631 into a comprehensive JSON analysis. The
Proxy prefix-rewrite bypass in @fastify/http-proxy (versions up to and including 11.5.0) lets remote unauthenticated att
fastify-http-proxy is an npm package which is a fastify plugin for proxying your http requests to another server, with h
Path-restriction bypass in @fastify/http-proxy 9.0.0 through 11.6.5 lets unauthenticated remote attackers escape an inte
HTTP header smuggling in @fastify/reply-from ≤12.6.1 and @fastify/http-proxy ≤11.4.3 allows remote unauthenticated attac
Path traversal in @fastify/http-proxy before 11.6.2 permits unauthenticated remote attackers to bypass the prefix and re
Denial of service in @fastify/http-proxy 9.4.0 through 11.6.9 lets remote unauthenticated attackers crash the Node.js pr
Unhandled socket errors in @fastify/http-proxy versions 9.0.0 up to but not including 11.6.10 allow remote unauthenticat
Denial of service in @fastify/http-proxy (9.0.0 up to but not including 11.6.10) lets a single unauthenticated connectio
Path traversal prefix escape in @fastify/http-proxy before 11.6.10 lets remote attackers reach upstream paths outside th
@fastify/http-proxy 11.6.0 through 11.6.2 lets an unauthenticated remote attacker reach upstream resources outside the i
EUVD-2026-130502
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB