Supergateway 2.4.0 through 4.2.2 Cross-Site WebSocket Hijacking via stdioToWs
- State
- Published
- Severity
- 8.6 High
- Published
- Nov 18, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 18, 2026
Description
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.
| Product | Versions |
|---|---|
| supergateway supercorp-ai | 2.4.0 through 4.2.2 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.6 High | VulnCheck | |
| 3.1 | 8.1 High | VulnCheck |
Weaknesses
- CWE-1385 Missing Origin Validation in WebSockets
References
- GitHub Issue #378Issue Tracker
- https://github.com/supercorp-ai/supergateway/blob/v4.2.2/src/gateways/stdioToWs.ts#L104-L126Technical Details
- https://github.com/supercorp-ai/supergatewayProduct Page
- https://github.com/Teycir/supergateway-security-researchExploit
- VulnCheck Advisory: Supergateway 2.4.0 through 4.2.2 Cross-Site WebSocket Hijacking via stdioToWsThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.