Case · 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:

Scope

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.

At a glance

Mechanism and trust boundary

  1. 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

  2. 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

Link to claim
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

Link to claim
CLM-2026-NOV21-SUPERGATEWAY-WS-2The public advisory lists no verified patched version for this issue.supported

Basis: reported finding

Link to claim

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

  1. Nov 21, 2026 · Published version · first publication · revision 272