What happened
Supergateway 4.2.0 through 4.2.2 in stdio-to-SSE mode lets an unauthenticated attacker crash the gateway by sending a POST message request with sessionId set to prototype-chain values (toString, constructor, __proto__, etc.), triggering an exception that terminates the process (15/15 runs in the researcher's PoC, no session or credentials required).
Why it matters
Supergateway bridges local MCP servers to the network for AI coding agents. An unauthenticated remote attacker can permanently crash the gateway with a single message, taking the bridged MCP server offline for the agent — a low-effort denial of service against the agent's tool connectivity.
Attack vector
Unauthenticated POST message request with sessionId set to a prototype-inherited value (toString/constructor) triggers an exception that crashes the gateway process.
Affected systems
Supergateway 4.2.0 through 4.2.2 (stdio-to-SSE mode)
Mitigation
Upgrade/patch Supergateway (treat non-string sessionId as invalid); enable --apiKey to require authenticated sessions.