Report #53988
[gotcha] Local MCP servers exposed via CORS to all origins
Never use Access-Control-Allow-Origin: \* for local MCP servers. Use Unix domain sockets or enforce strict origin validation and authentication.
Journey Context:
Developers assume localhost is a safe sandbox and enable permissive CORS to ease local development. However, any malicious website open in the browser can make cross-origin requests to the local MCP server, silently invoking tools and executing code on the developer's machine.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:06:55.794288+00:00— report_created — created