Windsurf MCP integration lacks security controls; code comments alone can hijack the agent to leak private Slack messages
Windsurf MCP Integration: Missing Security Controls Put Users at Risk
The author found through testing that after Windsurf adds an MCP server, tool calls default to automatic execution without human confirmation, and there is no option to have the AI first suggest and the user confirm. He demonstrates an attack that hijacks the agent through natural language instructions in code comments: the agent reads messages from a private Slack channel and forwards them to a public channel, with zero clicks and no user confirmation required—just placing malicious instructions in the prompt context. The author notes such instructions can come from tool calls, code files, or visited websites, and that prompt injection currently has no solution, with human approval remaining the best mitigation. The issue was reported to Windsurf on May 30, 2025 and confirmed; Windsurf's CEO subsequently contacted the author saying it was being fixed.