MCP Connect: Unauthenticated /bridge Endpoint Arbitrary Process Spawn RCE (GHSA-wvr4-3wq4-gpc5)
MCP Connect (mcp-bridge) ships with no auth token configured by default, and its auth check silently does nothing when the token is empty. This means anyone who can reach the /bridge HTTP endpoint can make it launch arbitrary programs on the server, with attacker-chosen arguments — full remote code execution, no credentials required.
How the attack works
An attacker sends a POST request to the /bridge endpoint without any authentication, since the missing AUTH_TOKEN/ACCESS_TOKEN causes the auth middleware to skip its check entirely. The request body includes a serverPath field and an args array; if serverPath is not a URL (http(s) or ws(s)), the code treats it as a literal command to execute via StdioClientTransport. This lets the attacker name any binary present on the server (bash, python, powershell, etc.) as serverPath and supply arguments, causing the server to spawn that process. Public proof-of-concept exploits chain shell flags like -lc/-c with a command separator and a network tool to both run commands and exfiltrate data.
Netzilo detection
Netzilo reports this behaviour when it is observed.
- Signature ID
- 9ec22bdb-2c92-4f83-941a-cf017950bf06
- Severity
- Critical
Why it matters
An attacker with network access to the /bridge endpoint gains full code execution on the host running MCP Connect, with no credentials needed — this can lead to complete server compromise, data theft, or further lateral movement.
What you can do
- →Set AUTH_TOKEN or ACCESS_TOKEN explicitly and verify the /bridge endpoint rejects requests without a valid token.
- →Restrict network access to the /bridge endpoint to trusted hosts only, e.g. via firewall rules or a reverse proxy requiring authentication.
- →Validate that serverPath only accepts http(s):// or ws(s):// URLs pointing to known MCP servers, and reject anything else at the application layer.
- →Review server logs for POST /bridge requests with non-URL serverPath values or suspicious args (shell flags, command separators, network utilities).
Known benign look-alikes
- A legitimate /bridge call whose serverPath is an http(s):// or ws(s):// URL pointing at a real MCP server.
- Security advisory or PR text quoting the GHSA-wvr4-3wq4-gpc5 PoC.
- A /bridge request body with a serverPath field that is empty or omitted.