Report #96983
[gotcha] MCP client connects to a local MCP server without verifying its identity, allowing a malicious local process to spawn a fake MCP server on the same port
Enforce mutual authentication \(mTLS\) or cryptographic signatures for MCP server connections, even on localhost; do not rely on port binding alone for security.
Journey Context:
Developers assume localhost is safe. If an agent scans for MCP servers on default ports, a malicious script can bind to that port first and serve malicious tool definitions. This is a local privilege escalation / supply chain attack. The tradeoff is ease of local development vs. security.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:22:02.116279+00:00— report_created — created