Cursor CLI Beta Remote Code Execution Vulnerability via Malicious MCP Configuration
Vulnerability
A remote code execution vulnerability has been identified in the Cursor CLI Beta, affecting versions prior to 2025.09.17-25b418f. The issue arises from the MCP (Model Context Protocol) server mechanism, which can be exploited by uploading a harmful MCP configuration file, named .cursor/mcp.json, to a GitHub repository. When a victim clones the repository and opens it with Cursor CLI, the application automatically executes the command to launch the malicious MCP server, without any warning. This allows for immediate code execution as soon as the command is run.
Impact
Exploitation of this vulnerability allows for remote code execution on the victim's machine.
Remediation
Users can update to Cursor CLI version 2025.09.17-25b418f or later. After this update, MCP servers will prompt for confirmation before being enabled.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
