The stdioToWs gateway accepted WebSocket upgrades without checking whether the Origin represented a trusted caller. The browser can reach even some local-only gateways from an attacker-controlled web page, and a successful upgrade could be used to initialize an MCP session and invoke tools provided by the wrapped stdio server. The privilege available to the…
Inspect the ClaimsCase · DiggingBeagle record
Supergateway browser WebSocket access could drive a local MCP tool session
A malicious web page could initiate an MCP session through the /message WebSocket because the gateway did not validate Origin.
Published by DiggingBeagle:
Supergateway stdio-to-WebSocket mode 2.4.0 through 4.2.2, where a victim browser can reach /message and the wrapped MCP service exposes tools.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- AI role
- AGAINST AI
Basis and provenance
Vendor or researcher primary evidence establishes the stated mechanism and its bounds; the public record does not support a population-wide impact score, prevalence or generalization to installations without the prerequisites.
Assessed Nov 21, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-2026-NOV21-SUPERGATEWAY-WS-1 · CLM-2026-NOV21-SUPERGATEWAY-WS-2 · CLM-ENR271-SUPERGATEWAY-WS · Supergateway cross-site WebSocket hijacking advisory CVE-2026-132121
At a glance
The browser sends an Origin header, but a WebSocket server must check it before upgrading a connection to a local MCP bridge. In affected stdioToWs deployments, a malicious page could establish the bridge and exercise whatever tools the wrapped server exposed. The actual side effects depend on that tool inventory and process rights; the cited advisory does…
Read the implicationsThe disclosed affected range ends at 4.2.2, but the inspected GitHub advisory does not identify a verified patched version. No confirmed production victim or universal arbitrary-shell capability is established; the consequences depend on which MCP tools are wrapped.
Limits and uncertaintyFull account
The stdioToWs gateway accepted WebSocket upgrades without checking whether the Origin represented a trusted caller. The browser can reach even some local-only gateways from an attacker-controlled web page, and a successful upgrade could be used to initialize an MCP session and invoke tools provided by the wrapped stdio server. The privilege available to the attacker is therefore determined by the gateway process and wrapped MCP implementation, not by whether the website had permission to talk to that process.
The disclosed affected range ends at 4.2.2, but the inspected GitHub advisory does not identify a verified patched version. No confirmed production victim or universal arbitrary-shell capability is established; the consequences depend on which MCP tools are wrapped.
Mechanism and trust boundary
- 01
Browser page initiates WebSocket upgrade
A malicious site connects to a reachable stdioToWs /message endpoint without being challenged by an Origin check.
Boundary: browser webpage origin -> local MCP transport
- 02
Wrapped tool authority becomes reachable
After MCP initialization the webpage can issue calls to wrapped stdio tools, whose actual side effects depend on server privileges.
Boundary: cross-origin socket -> privileged MCP tool invocation
Claims & evidence
CLM-ENR271-SUPERGATEWAY-WSThe Supergateway advisory states that the /message WebSocket route accepted cross-origin upgrades without an Origin check and could initialize a wrapped stdio MCP session.supported
Basis: reported finding
- supportsSupergateway cross-site WebSocket hijacking advisory CVE-2026-132121primary disclosure
CVE-2026-132121: WebSocket /message route and missing Origin validation
CLM-2026-NOV21-SUPERGATEWAY-WS-1The advisory states that stdioToWs /message lacked Origin checks, allowing cross-site WebSocket initiation and use of wrapped MCP tools.supported
Basis: reported finding
- supportsSupergateway cross-site WebSocket hijacking advisory CVE-2026-132121primary disclosure
Description: WebSocket-origin bypass and affected modes
CLM-2026-NOV21-SUPERGATEWAY-WS-2The public advisory lists no verified patched version for this issue.supported
Basis: reported finding
- supportsSupergateway cross-site WebSocket hijacking advisory CVE-2026-132121primary disclosure
Patched versions: Unknown
Implications
The browser sends an Origin header, but a WebSocket server must check it before upgrading a connection to a local MCP bridge. In affected stdioToWs deployments, a malicious page could establish the bridge and exercise whatever tools the wrapped server exposed. The actual side effects depend on that tool inventory and process rights; the cited advisory does not name a confirmed fixed release or a real-world victim.
Controls and mitigations
- Restrict WebSocket upgrades to trusted Origins and authenticate the caller before an MCP session or tool call is created.
- Separate local browser reachability from actual tool permission, and check a vendor-maintained fixed release before claiming the issue is patched.
Unknowns and contradictions
- The disclosed affected range ends at 4.2.2, but the inspected GitHub advisory does not identify a verified patched version. No confirmed production victim or universal arbitrary-shell capability is established; the consequences depend on which MCP tools are wrapped.
Sources and citation
Material revision history
- Nov 21, 2026 · Published version · first publication · revision 272