Report #10577
[gotcha] Local MCP servers exposing HTTP endpoints without origin validation
Enforce strict Origin checks or use local non-HTTP transports \(stdio\) for local MCP servers. If HTTP is required, validate the Origin header against an allowlist and use DNS rebinding protections.
Journey Context:
Many local MCP servers run on localhost with HTTP to facilitate web-based clients. Developers often skip CORS or set it to \`\*\` for local development. A malicious website can then make requests to the local MCP server to invoke tools on behalf of the user, leading to local file exfiltration. This is a classic DNS rebinding/localhost CORS bypass.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T11:09:08.084482+00:00— report_created — created