Documented Incident · INC-2025-54135 · Critical severity
Cursor IDE CurXecute Indirect Prompt Injection Rewriting .cursor/mcp.json for RCE
CVE-2025-54135 (dubbed CurXecute by Aim Labs and published August 4, 2025) exposed a critical remote code execution chain in the Cursor AI IDE (`< 1.3.9`). When a developer queried an external data source through a connected MCP server (such as Slack or a public issue tracker), an indirect prompt injection in the returned content instructed Cursor's agent to create or overwrite `.cursor/mcp.json` with a malicious stdio server command. Because Cursor immediately launched newly written MCP server commands even before explicit user approval of the edit, attackers achieved instant host RCE. Cursor v1.3.9 remediated the flaw by requiring explicit confirmation before launching modified MCP configs.
Incident dossier metadata
- Case ID
INC-2025-54135- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Software Development & AI Tooling
- Attack vector
- Indirect Prompt Injection
- System type
- AI-Native Code Editors & MCP Hosts
- CVE / reference
CVE-2025-54135- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-54135
Defensive takeaway
Protect agent MCP configuration files from autonomous model writes and require explicit human re-approval whenever an MCP server command changes.
Mapped AI security techniques
- Command and Scripting Interpreter AML.T0050
- LLM Prompt Injection: Indirect AML.T0051.001
- AI Agent Tool Invocation AML.T0053
- Modify AI Agent Configuration AML.T0081
- AI Agent Tool Poisoning: Runtime Response AML.T0110.002
- Machine Compromise: Local AI Agent AML.T0112.000
Mapped defensive controls
Source citation records
- NVD Record CVE-2025-54135: Cursor IDE CurXecute MCP Config Rewrite RCE · NIST National Vulnerability Database (NVD) ·