Report #59251
[gotcha] Malicious websites invoking local MCP servers via permissive CORS
Bind MCP servers strictly to loopback and validate Origin headers or use local auth tokens; never use Access-Control-Allow-Origin: \*.
Journey Context:
Many MCP servers run locally to give the agent access to local files. If CORS is permissive, a malicious website visited by the user can make cross-origin requests to the local MCP server, silently triggering local tool execution \(e.g., reading files\) using the user's browser as a proxy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:56:33.802989+00:00— report_created — created