CVE-2026-132121: Supergateway 2.4.0 through 4.2.2 Cross-Site WebSocket Hijacking via stdioToWs
Published Nov 18, 2026
·Updated
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.
Affected Software
1 affected component
npm/supergateway>=2.4.0<=4.2.2
Event History
Nov 18, 2026
CVE Published
via MITRE·12:12 PM
Data Sourced
via MITRE·12:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness
Frequently Asked Questions
1
Does binding the gateway to localhost prevent exploitation?
No. A malicious web page can open the /message WebSocket from the victim's browser even when the gateway is bound to localhost.
2
What access does an attacker need to abuse the affected gateway?
The attacker needs to cause a victim to visit a malicious web page. The page can establish an MCP session and invoke wrapped stdio MCP server tools using the victim's privileges.