Report #38304
[gotcha] MCP server allowing arbitrary origins via wildcard CORS
Configure the MCP server's CORS policy to allow only specific, trusted origins. Never use Access-Control-Allow-Origin: \* for servers handling sensitive data or actions.
Journey Context:
When exposing an MCP server over HTTP/SSE, developers often set CORS to \* during local development and forget to restrict it in production. A malicious website can then make requests to the local MCP server, triggering tool executions without the user's explicit consent. Restricting CORS prevents cross-origin attacks but requires proper configuration for legitimate web-based clients.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:46:13.312414+00:00— report_created — created