Skip to content
Supergateway Security Research

Supergateway Security Research

github.com • November 19, 2026

Two independently reproducible vulnerabilities in supergateway , the MCP stdio↔network bridge, with working exploits, captured proof, and a validated patch.

Verified against supergateway 4.2.2 , commit 5ad19d3 (tag v4.2.2-4-g5ad19d3 ), Node.js 22.21.0, Linux.

./scripts/reproduce.sh does all three. Expect 36 passed, 0 failed and FIX VALIDATED .

SGW-2026-001 — five prototype keys ( toString , __proto__ , constructor , hasOwnProperty , valueOf ) kill the gateway in 15/15 runs; no session and no credentials required; reproducible over a non-loopback interface; raw TCP ( nc ) reproduction included. Patched build returns 503 , stays alive, and still serves legitimate sessions.

SGW-2026-002 — a malicious page exfiltrates a local file through the victim's gateway from four origins × 3 runs (12/12), including a real Chromium proof ( evidence/cswsh_browser.png ). --apiKey refuses unauthenticated upgrades.

RT-03 — a unique secret marker placed in _meta.password appears verbatim in the gateway's info log (3/3).

All work was performed in an isolated lab against local instances. The PoCs bind to loopback by default and require an explicit target URL otherwise. Use only against systems you own or are authorised to test. Logs in evidence/ contain lab paths and test values (test API key K3yTest , canary SGW-CANARY-… ); none are production secrets.

Plain-language explanations

See docs/vulnerabilities-simple.md for simple, non-technical descriptions of both bugs and their attack paths.

Both advisories were submitted and published via the GitHub Security Advisory API (token Teycir ) on 2026-11-17. Because the token only has read access to upstream supercorp-ai/supergateway , the advisories were published under the Teycir/supergateway fork:

Status: Published under fork (incorrect repository). Published advisories cannot be withdrawn via API. The upstream maintainers have been requested to submit canonical advisories under supercorp-ai/supergateway using the prepared CVE request text in docs/cve-request.md and cve/ . See docs/maintainer-notification.md for the full notification message.

2026-11-17 — findings discovered and verified; report and PoCs produced.

2026-11-17 — re-verified 36/36; patch validated; this package assembled.

2026-11-17 — GHSA advisories submitted and published (see table above).

2026-11-17 — Vendor contacted via public issue #378 : supercorp-ai/supergateway#378

2026-11-17 — Research repository made public:

2026-11-17 — VulDB submissions submitted (both vulnerabilities, IDs pending processing)

2026-11-17 — VulnCheck submissions submitted (both vulnerabilities: SGW-2026-001: 8d6ec57c-cd0e-4ea1-9727-4608822f3442 → CVE-2026-131857, SGW-2026-002: 844df8d2-8b17-4072-8af1-ea68aab893fe → CVE-2026-132121)

CVEs assigned by VulnCheck (certified CNA): SGW-2026-001 → CVE-2026-131857 (DoS), SGW-2026-002 → CVE-2026-132121 (CSWSH). CVE request text and JSON remain in docs/cve-request.md and cve/ for upstream canonical GHSA submission.

: Teycir (@Teycir) via GitHub issues or the upstream issue #378. The maintainers' own policy is in the upstream SECURITY.md .

Research, exploit development, and report: Teycir (@Teycir). Reported with coordinator assistance as applicable.

MIT — see LICENSE . The license covers this repository's original content; upstream supergateway remains under its own license.

Extracted Entities