Report #16241
[gotcha] Localhost MCP servers assumed safe from remote web attacks
Strictly validate the Origin header in all MCP SSE servers and reject cross-origin requests from public websites.
Journey Context:
Running an MCP server on localhost feels secure because it's not exposed to the internet. However, any public website a user visits can make HTTP requests to localhost if CORS isn't enforced. A malicious site can connect to the local SSE stream and invoke tools \(like file system access\) with the user's privileges, completely bypassing network boundaries and exploiting the implicit trust of local execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:14:21.416401+00:00— report_created — created