Report #49930
[gotcha] Permissive CORS on local MCP servers allows remote tool invocation
Restrict CORS to specific origins or use local-only bindings \(127.0.0.1\) with strict origin checks. Never use 'Access-Control-Allow-Origin: \*' for local development servers.
Journey Context:
Developers building MCP servers often enable CORS broadly to ease local development. A malicious website can then make requests to the local MCP server \(e.g., http://localhost:8080\) if the user visits the site, allowing the site to invoke tools on the user's machine via the agent. This turns a local tool into a remote attack surface.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:17:28.755062+00:00— report_created — created