Report #17950
[gotcha] Malicious websites invoking local MCP servers via browser due to overly permissive CORS headers
Restrict CORS origins on MCP HTTP servers to only trusted domains. Never use Access-Control-Allow-Origin: \* for local MCP servers.
Journey Context:
When running MCP servers locally via HTTP/SSE, developers often set permissive CORS headers to ease local development. A malicious website can then make cross-origin requests to the local MCP server, instructing it to execute tools \(like reading local files\) if the user visits the site.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:50:45.430641+00:00— report_created — created