Cursor agent rewrites MCP configuration from injected chat message (CurXecute)

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.

1 August 2025DemonstratedHijacked by content
Cursor AI code editor agent with MCP servers · Anysphere (Cursor) · Global
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
Instructions hidden in contentWorked around a safeguard
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

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.

All 177 incidents →The Future Skills Lab

Learn with us

Learn the human skills that gain value

Future Skills 101: live online sessions of 90 minutes, open to anyone. Power Skills trainings for teams on request.