Skip to content
Supergateway Issues 378

Supergateway Issues 378

github.com • November 19, 2026

I have discovered two high-severity security vulnerabilities in supergateway and have published GHSA advisories with full research, exploits, and proof.

Full research with working exploits, captured proof, and validated patch:

SGW-2026-001: Unauthenticated Remote DoS

Impact: An unauthenticated POST /message?sessionId=toString (or any prototype chain key) terminates the entire gateway process and all attached MCP sessions. No active session or credentials required.

Root cause: Sessions stored in a plain object without ownership checks. Prototype chain keys return truthy non-session values, causing TypeError in an async Express handler. Node.js exits on unhandled rejection.

Verified: 15/15 crashes across five payloads, including non-loopback interface and raw TCP reproduction.

Fix: Replace plain object with Map and validate ownership (patch included in research repo).

SGW-2026-002: Cross-Site WebSocket Hijacking

Impact: Any web page can connect to ws://127.0.0.1: /ws from any origin, drive the local MCP server, and invoke tools (filesystem, shell, APIs) with the victim's privileges. Server accepts Origin: null and any arbitrary origin.

Root cause: WebSocket upgrade handler never validates req.headers.origin , and authentication is optional/not enabled by default.

Verified: 12/12 exfiltrations across four origins, including real Chromium browser proof.

Fix: Validate Origin against allowlist during upgrade, require API key for upgrades, bind loopback by default.

Review the research repository and validate the findings

Submit canonical GHSA advisories under supercorp-ai/supergateway (my token only had read access, so they were published under my fork)

Coordinate CVE assignment through GitHub CNA

Determine a coordinated disclosure timeline

Note on GHSA Location

The advisories are currently published under my fork ( Teycir/supergateway ) because my GitHub token only has read access to the upstream repository. Published advisories cannot be withdrawn via API. I request that canonical advisories be submitted under the correct repository.

Upstream PR #178 contains prior work on the session management fix shape, which my patch builds upon.

I am available to these findings, provide additional context, or assist with patch integration.

Extracted Entities