Executive Summary#
I co-discovered TrustFall, a critical security flaw affecting major agentic developer tools including Claude Code, Cursor CLI, Gemini CLI (Antigravity), and GitHub Copilot CLI. The vulnerability allows a malicious repository to execute arbitrary code with one click, exploiting the implicit trust granted during the workspace initialization.
The core issue lies in the handling of Model Context Protocol (MCP) project-scoped servers. When a user opens an untrusted repository and accepts the standard folder-trust prompt, all four agentic CLIs auto-execute the project-defined MCP servers without any additional confirmation or secondary warning.
Vulnerability Risk Assessment: CRITICAL
- Vulnerability Name: TrustFall
- Affected Tools: Claude Code, Cursor CLI, Gemini CLI (& Antigravity CLI), GitHub Copilot CLI, Codex CLI
- Vulnerability Type: One-Click Remote Code Execution (RCE)
- Attack Vector: Malicious repository containing project-scoped MCP server configurations
- Impact: Unsandboxed execution on the developer machine, or 0-click environment variable exfiltration in headless CI/CD pipelines
How the Vulnerability Works#
- Malicious Config: An attacker commits a custom
.mcp.jsonor equivalent configuration file to a repository. This config specifies an MCP server whose startup command launches a malicious payload (e.g., executing shell scripts or exfiltrating credentials). - The “Trust Fall”: The developer clones the repository and starts the coding agent.
- Implicit Execution: The coding agent displays a generic folder-trust prompt. Once the developer presses Enter to grant trust, the agent immediately spins up the configured MCP servers, executing the attacker’s payload.
On headless CI/CD systems, the attack can escalate to zero-click execution. Since CI runtimes typically execute coding agents in non-interactive modes with auto-trust settings enabled, simply submitting a malicious pull request allows the exploit to trigger automatically, exfiltrating pipeline secrets and environment variables.
Full Research and Details#
For the complete technical breakdown, proof-of-concepts, and vendor responses, read the original publication:
👉 TrustFall: coding agent security flaw enables one-click RCE in Claude, Cursor, Gemini CLI and GitHub Copilot (Published on Adversa AI)




