Cursor agent rewrites MCP configuration from injected chat message (CurXecute)
Content the agent was only asked to read caused it to change its own tool configuration and launch attacker-chosen commands.
- What happened
- Responsibly disclosed vulnerability, CVE-2025-54135; demonstrated by researchers with no reported in-the-wild exploitation. Aim Labs showed that data the agent fetched through an MCP server, such as a Slack message the user asked it to summarise, could instruct Cursor's agent to add a new entry to the workspace .cursor/mcp.json configuration file. Because Cursor wrote in-workspace files without requiring approval and started new MCP entries automatically, the attacker-specified command ran with the developer's privileges.
- Response
- Cursor released a fix in version 1.3 on 29 July 2025, before public disclosure on 1 August 2025; the CVE was published on 5 August 2025 (rated 8.6 in vendor reporting and 9.8 by NVD). Cursor also moved its auto-run controls from a denylist to an allowlist after related bypass reports.
- Discovered by
- Aim Labs (Aim Security).
- Who was affected
- Cursor users on versions before the fix (CVE record lists versions below 1.3.9)
- Patterns
- Sources
- Aim Labs | CurXecute BlogpostAim Security, Aug 2025
- Cursor AI Code Editor Fixed Flaw Allowing Attackers to Run Commands via Prompt InjectionThe Hacker News, 1 Aug 2025
- CVE-2025-54135Tenable, 5 Aug 2025
Related
Incidents with the same pattern
What does this ask of people?
Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.