CursorGHSA-4hwr-97q3-37w2
Command Injection via Untrusted MCP Configuration in Cursor CLI Beta
Fix: upgrade to 2025.09.17-25b418f or later
Summary
A vulnerability in the Cursor CLI Beta allowed an attacker to achieve remote code execution through the MCP (Model Context Protocol) server mechanism by uploading a malicious MCP configuration in .cursor/mcp.json file in a GitHub repository. Once a victim clones the project and opens it using Cursor CLI, the command to run the malicious MCP server is immediately executed without any warning, leading to potential code execution as soon as the command runs.
Remediation
MCP servers now prompt with a dialog before being enabled.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Cursor CLI (Beta) Product | < 2025.09.17-25b418f | 2025.09.17-25b418f |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-78