← News

Supergateway: hijack WebSocket to run commands

HighAI-generated2026-11-20

CVE
CVE-2026-132121
Severity
High (CVSS 8.1)
Attack conditions
Remotely, over the network · No account needed · A user must take some action
Exploitation probability (EPSS)
0.1% (within 30 days; FIRST EPSS, 23 November 2026)

Summary

Supergateway versions 2.4.0 through 4.2.2 contain a flaw that lets malicious web pages bypass origin checks and open a WebSocket connection. This can be used to start a session and invoke server tools with the victim's privileges.

Details

According to the NVD record, Supergateway 2.4.0 through 4.2.2 has a cross-site WebSocket hijacking issue in its stdio-to-WebSocket mode. The vulnerability arises because the gateway does not validate the Origin header, allowing a malicious page to connect to the /message WebSocket, even when the gateway is bound to localhost.

An attacker can exploit this by opening the WebSocket from a victim's browser, initiating an MCP session, and then invoking wrapped stdio MCP server tools. This effectively lets the attacker run commands or tools with the same privileges as the victim user.

What to do

The source record does not name a specific patch, fixed version or workaround. General measures:

  • Follow the vendor's security advisories.
  • Apply the update when it is released.
  • Limit access to the product as much as possible, especially from the internet.

Sources

Timeline

  • 18 November 2026 NVD record published
  • 20 November 2026 This article was written