Report #66310
[gotcha] MCP server exposed to the web with permissive CORS allows browser-based exfiltration
Configure MCP servers to strictly validate the \`Origin\` header. Never use \`Access-Control-Allow-Origin: \*\` or allow arbitrary origins if the server has access to local resources or sensitive data. Bind local MCP servers to localhost only.
Journey Context:
Developers exposing an MCP server via HTTP for remote access or local web integrations often set permissive CORS headers to bypass browser restrictions. A malicious website can then make cross-origin requests to the local MCP server, instructing it to execute tools \(like reading local files\) and exfiltrating the results back to the attacker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:46:40.029452+00:00— report_created — created