Skip to main content

Supergateway CVE-2026-132121

| EUVDEUVD-2026-128624 HIGH
Missing Origin Validation in WebSockets (CWE-1385)
2026-11-18 VulnCheck GHSA-cp8r-6jmm-c5qw
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Lure victim to malicious web page
  2. Delivery
    Page JavaScript opens /message WebSocket
  3. Exploit
    Bypass missing Origin validation
  4. Execution
    Initialize MCP session over hijacked socket
  5. Impact
    Invoke 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

supergateway 2.4.0 ≤4.2.2

Affected Packages

euvd supergateway no fix

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

Vendor (VulnCheck) PRIMARY 8.6 HIGH
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
vuln.today AI 8.1 HIGH

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.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
niche open-source MCP stdio-to-WebSocket gateway, limited developer/production footprint
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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