Report #92398
[gotcha] Remote MCP servers using SSE transport expose local resources to malicious websites
When implementing or configuring an MCP server using Server-Sent Events \(SSE\) transport, strictly validate the Origin header and configure restrictive CORS policies. Do not allow Access-Control-Allow-Origin: \*.
Journey Context:
Local MCP servers using stdio are inherently protected by local process boundaries. When adapting these to remote/web architectures using SSE, developers often enable permissive CORS to make integration work. A malicious website can then initiate an SSE connection to the user's locally running MCP proxy, triggering tool executions \(like file reads\) on the user's machine via the agent.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:40:52.061080+00:00— report_created — created