Advisory

GHSA-5gm3-9crp-6g3v

Details, part 2 of 2. The advisory

Details

With expose_control_tools: true, the same unauthenticated browser-origin path can enumerate process state, read logs, search logs, truncate logs, start processes, stop processes, restart processes, and scale processes. If the operator exposes user-defined MCP process tools, the attacker can invoke those configured commands and read their output.

Process logs and process output often contain service names, local paths, usernames, runtime state, internal URLs, and secrets emitted by child processes. Start, stop, restart, scale, and log truncation are process-control operations on the developer's local process-compose project.

Suggested Fix

Add a target-side trust boundary to the MCP SSE listener before MCP dispatch:

  1. Reject requests whose Host header is not loopback or an explicit configured trusted name.
  2. Reject browser requests whose Origin is not a trusted loopback or configured origin.
  3. Require a random per-run bearer token or equivalent caller secret on both /sse and the returned /message endpoint.
  4. Do not rely on localhost reachability as an authentication boundary for browser-reachable HTTP transports.
  5. Consider requiring an explicit authentication setting before starting SSE MCP with process-control tools.

Sources & licences