Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure victim to malicious web page
-
DeliveryPage JavaScript opens /message WebSocket
-
ExploitBypass missing Origin validation
-
ExecutionInitialize MCP session over hijacked socket
-
ImpactInvoke wrapped stdio MCP tools as victim
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware safety mechanism
|
| Exploitation Conditions | Exploitation requires (1) Supergateway running specifically in stdio-to-WebSocket (stdioToWs) mode, which exposes the /message WebSocket endpoint, and (2) a victim who visits an attacker-controlled web page while that gateway is reachable from their browser - notably this works even against localhost-bound gateways, so a loopback-only binding is NOT a mitigation. The root cause is absent Origin header validation on the WebSocket handshake (CWE-1385). Limiting factors: affected versions are 2.4.0 through 4.2.2 only; the UI:P passive interaction means the attack cannot fire without the victim loading a malicious/compromised page; and the achievable impact is bounded by the capabilities of the wrapped stdio MCP server's tools, which the sources do not enumerate. No attacker authentication is required (PR:N). |
| Impact | This is a credible, above-average-priority issue but not an emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N, score 8.6) describes a network-reachable, low-complexity flaw needing no attacker authentication (PR:N) but requiring passive victim interaction (UI:P) - the victim must visit an attacker-controlled web page while a vulnerable Supergateway instance runs. The vuln.today decision label is 'this_week', consistent with a serious-but-not-drop-everything posture. There is no CISA KEV listing and no EPSS score in the input, so there is no signal of active or widespread exploitation; exploitation status is best described as a public PoC reference existing (a security-research repo) that is not verified as working exploit code. The high VC/VI (confidentiality and integrity) ratings are justified because a successful hijack lets a web page drive the wrapped stdio MCP server's tools with the victim's privileges - but real-world impact is bounded by which tools the wrapped MCP server exposes, which the sources do not enumerate. Net: a real priority for anyone running Supergateway in stdio-to-WebSocket mode, with the UI:P requirement and the niche deployment footprint tempering mass-exploitation risk toward targeted abuse rather than internet-wide scanning. |
| Exploit ScenarioDerived | A developer runs Supergateway in stdio-to-WebSocket mode, even bound only to localhost, to expose a wrapped MCP server. They are lured to a malicious web page, whose JavaScript opens a WebSocket to the gateway's /message endpoint; because Origin headers are not validated, the cross-site connection succeeds, initializes an MCP session, and invokes the wrapped server's tools with the victim's privileges. A public PoC reference exists (a security-research repository) but it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Cross-site WebSocket hijacking in Supergateway 2.4.0 through 4.2.2 allows an attacker-controlled web page to open the gateway's /message WebSocket, initialize an MCP session, and invoke the tools of the wrapped stdio MCP server with the victim's privileges. The handshake lacks Origin header validation (CWE-1385), so the attack succeeds even when the gateway is bound only to localhost; the attacker must still lure a victim into loading a malicious or compromised page (CVSS 4.0 UI:P, PR:N - no attacker authentication). Impact is bounded by which tools the wrapped stdio MCP server actually exposes, a public PoC reference exists but is not verified as working exploit code, and there is no CISA KEV listing.
RemediationAI
The supplied references, including the upstream issue at https://github.com/supercorp-ai/supergateway/issues/378 and the VulnCheck advisory at https://www.vulncheck.com/advisories/supergateway-2.4.0-through-4.2.2-cross-site-websocket-hijacking-via-stdiotows, do not list a fixed Supergateway release, so no vendor-released patch version can be cited at time of analysis; track issue 378 for the fix and upgrade as soon as a version above 4.2.2 is published. Until then the effective mitigation is to stop running Supergateway in stdioToWs mode wherever it is not strictly required, since that mode is what exposes /message, or to place the endpoint behind a proxy that enforces an Origin allowlist on the WebSocket upgrade - the trade-off being that non-browser MCP clients which send no Origin header will be rejected unless explicitly exempted. Do not rely on binding the gateway to 127.0.0.1 or localhost as a control: the attack is initiated from the victim's own browser, so loopback binding does not prevent the hijack. Restricting the wrapped stdio MCP server to the minimum set of tools with the least local privilege limits the blast radius, given that the achievable impact is bounded by those tools.
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
Supergateway wraps MCP (Model Context Protocol) servers that normally speak stdio and re-exposes them over network transports; in stdio-to-WebSocket (stdioToWs) mode it serves a /message WebSocket endpoint (see src/gateways/stdioToWs.ts, lines 104-126 in the v4.2.2 tree) that carries MCP JSON-RPC traffic. The root cause class is CWE-1385, Cross-Site WebSocket Hijacking: the WebSocket upgrade is accepted without validating the Origin header, so a page on any origin can complete the handshake. Browsers permit a page to open a WebSocket to loopback addresses, which is why a localhost-only bind provides no protection here - the browser itself becomes the pivot into the local gateway. Once connected, the attacker's script drives the MCP session exactly as a legitimate client would, and the achievable impact is whatever the wrapped stdio server's tools can do under the victim's local privileges; the available sources do not enumerate those tools. CPE cpe:2.3:a:supercorp-ai:supergateway:*:*:*:*:*:*:*:* covers the package, and the reported range is 2.4.0 through 4.2.2 inclusive.
Know when Supergateway 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network-reachable cross-site WebSocket hijack needing no attacker auth (PR:N) but a victim page visit (UI:R); invoking wrapped MCP tools yields high C and I, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Supergateway 2.4.0 through 4.2.2 contains a cross-site WebSocket hijacking vulnerability in stdio-to-WebSocket mode that allows malicious web pages to connect by bypassing missing Origin header validation. Attackers can open the /message WebSocket from a victim's browser, even against localhost-bound gateways, to initialize an MCP session and invoke wrapped stdio MCP server tools with victim privileges.
Technical POC Analysis
CWE-1385 (Missing Origin Validation in WebSockets), cross-site WebSocket hijacking.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Supergateway, an open-source bridge exposing stdio-based MCP servers over WebSocket, is affected by a cross-site WebSocket hijacking flaw that lets a malicious web page invoke the tools of any wrapped MCP server with the victim's privileges, even when the gateway is bound to localhost. Because exploitation requires only that an employee load a booby-trapped page, any team running Supergateway 2.4.0-4.2.2 in developer or AI-tooling workflows is exposed, and the blast radius mirrors whatever capabilities those MCP tools hold - potentially file access, code execution, or downstream system actions. Leadership should care because this expands the attack surface of AI agent tooling without a vendor fix, meaning risk acceptance and containment decisions sit with management.
No vendor-released patch identified at time of analysis. Interim mitigations: enforce Origin-header allowlisting at a reverse proxy in front of Supergateway, reject WebSocket upgrades lacking an expected Origin, isolate gateways to localhost-only usage with no browser access, run gateways under least-privilege accounts, restrict exposed MCP tool sets, and block untrusted sites via browser policy.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-128624
GHSA-cp8r-6jmm-c5qw
NVD
CVE.org
EPSS
Exploit-DB