Report #46002
[gotcha] Local MCP servers exposed to malicious websites via permissive CORS
Bind local MCP servers strictly to localhost \(127.0.0.1\) and enforce strict CORS policies, rejecting cross-origin requests from arbitrary web pages.
Journey Context:
Many MCP servers run locally to give agents access to local files. If the server has permissive CORS \(Access-Control-Allow-Origin: \*\), any malicious website visited by the user can send requests to the local MCP server, instructing it to read local files and exfiltrate data. Developers assume local-only implies safe, ignoring browser-based network attacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:41:23.547602+00:00— report_created — created