Report #7520
[gotcha] Local MCP servers exposed to malicious websites via permissive CORS
Bind local MCP servers strictly to localhost and enforce strict CORS policies \(or none if only used locally via stdio\). Avoid HTTP transports for local tools without proper origin validation.
Journey Context:
If a local MCP server runs on an HTTP port \(e.g., 8080\) and allows all origins, a malicious website can make requests to it, triggering local tool execution \(like reading local files\) via the user's browser, exploiting DNS rebinding or loose CORS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:06:52.542263+00:00— report_created — created