Prompt injection escapes Cursor terminal sandbox by overwriting helper (DuneSlide)

Prompt injection escapes Cursor terminal sandbox by overwriting helper (DuneSlide)

The agent could be directed to disable the sandbox that was meant to contain its own commands.

1 July 2026DemonstratedHijacked by content
Cursor AI code editor agent terminal sandbox · Anysphere (Cursor) · Global
What happened
Responsibly disclosed vulnerabilities CVE-2026-50548 and CVE-2026-50549 (CVSS 9.8) demonstrated by researchers; no reported in-the-wild exploitation. Cato AI Labs showed that instructions in external content read by Cursor's agent, such as MCP server output or web search results, could make it run commands whose working_directory parameter, or a symlink whose resolution check failed, pointed outside the project. This allowed the agent to overwrite Cursor's sandbox helper binary, disabling the sandbox for later commands and giving code execution on the developer's machine without user interaction.
Response
Cursor initially rejected the reports on 23 February, stating its threat model did not account for MCP server misuse; after escalation it reopened them on 26 February, shipped fixes in Cursor 3.0 on 2 April 2026 (symlink fix confirmed 1 June), and CVEs were assigned on 5 June 2026.
Discovered by
Cato AI Labs (Cato Networks); reported 19 February 2026.
Who was affected
Cursor users before version 3.0
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.