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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203