The Research Report
DuneSlide: Two Cursor Bugs That Turn Prompt Injection Into Zero-Click RCE
Two critical vulnerabilities in Cursor's AI code editor let attackers escape the sandbox and run arbitrary commands on a developer's machine. No click required. No approval dialog to ignore. Just a poisoned prompt hidden in content the agent reads on your behalf.
Cato AI Labs disclosed the pair on July 1, 2026. They named them DuneSlide. The CVEs are CVE-2026-50548 and CVE-2026-50549. Both carry a 9.8 CVSS 3.1 score (9.3 under CVSS 4.0). Cursor patched them in version 3.0, released April 2. Every version before 3.0 remains vulnerable.
Cursor claims more than half the Fortune 500 as users. If your team runs it, the fix is already available. The urgency is in checking which version you actually run.
What the Sandbox Was Supposed to Do
Starting in the 2.x line, Cursor runs agent terminal commands inside a sandbox by default. The sandbox restricts what those commands can touch. It limits file writes to the project directory. The goal is simple: a stray instruction from the AI agent cannot wreck the machine.
DuneSlide defeats that containment. Both flaws use the same strategy. Get the agent to write one file it should not be allowed to write. Use that write to disable the sandbox itself. Then all later commands run unrestricted.
The Attack Vector: Indirect Prompt Injection
The attacker never types into your Cursor. They plant instructions inside something your agent reads on your behalf. That can be a response from a connected MCP server. It can be a page returned by a web search. It can be content in a project file the agent opens.
You ask a normal question. The hidden instructions come along for the ride. The agent acts on them as if they were your instructions. Because the attack needs no click or approval from you, Cato classifies it as zero-click.
This is indirect prompt injection. The developer's intent is legitimate. The untrusted content carries the payload. Training people not to click bad links does not help here. The threat is in what the agent reads, not what the user clicks.
CVE-2026-50548: The Working Directory Trick
The first flaw abuses a configuration parameter. Cursor's runterminalcmd tool takes an optional working_directory parameter. When the agent sets it to a non-default path, Cursor adds that path to the allowed-write list without validation.
Injected instructions can point that parameter at a system file instead of the project. The sandbox sees a "legitimate" working directory and grants the write. The attacker now has file writes outside the project boundary.
The primary target is the sandbox helper itself. On macOS, that file sits at:
/Applications/Cursor.app/Contents/Resources/app/resources/helpers/cursorsandbox
On Windows:
C:\Users\[user]\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe
Overwrite that binary, and every subsequent command runs with no sandbox at all. Startup files like ~/.zshrc work as targets too. A dropped file in the home directory executes on the next shell session.
NVD classifies this as CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path Traversal).
CVE-2026-50549: The Symlink Fallback
The second flaw attacks a safety check directly. Before writing, Cursor canonicalizes symbolic links to confirm the real destination sits inside the project. The bug is the fallback.
When canonicalization fails, Cursor gives up and trusts the symlink's stated path instead. The check fails open. Canonicalization can fail for two reasons:
- The target file does not exist
- The attacker removes read access from a directory in the path
An attacker creates a symlink inside the project that points outside it. They force canonicalization to fail. Cursor writes through the symlink to an arbitrary location. Same target: the sandbox helper. Same escape, different door.
NVD classifies this as CWE-59: Improper Link Resolution Before File Access (Link Following).
Cursor published a security advisory for this bug at GHSA-3v8f-48vw-3mjx on GitHub.
What Happens After Escape
Once the sandbox is neutralized, the next command runs as you. That means full control of the developer's machine. The attacker gains access to:
- Source code repositories
- Cloud service credentials stored locally
- SaaS workspace tokens
- SSH keys and signing certificates
- CI/CD pipeline access
- Internal network reachable from the workstation
For organizations with Cursor deployed across engineering teams, a single compromised MCP server or poisoned search result could cascade into widespread code tampering or credential theft.
Disclosure Timeline
Cato reported both vulnerabilities on February 19, 2026. Cursor rejected the reports four days later. The vendor said its threat model did not cover misuse of MCP servers, even standard ones like the official Linear workspace connector.
Cato escalated on February 26. Cursor reopened the reports, triaged them, and shipped both fixes in version 3.0 on April 2. CVE IDs were assigned on June 5.
That three-month gap between disclosure and CVE publication means many security teams learned of these issues only this week. The patch has been available since April. The risk is in teams that never upgraded.
No exploitation in the wild has been documented. Cato presents this as research, not an active campaign. The public vulnerability record shows no known exploitation as of publication.
Not the First Cursor Prompt Injection Bug
DuneSlide is the latest in a series of Cursor vulnerabilities that start with a poisoned prompt and end in code execution. Each one defeats a different guardrail.
- CurXecute (CVE-2025-54135, August 2025): Same team, then operating as Aim Security. A planted Slack message rewrote Cursor's MCP config and ran commands even after the user rejected the edit. Fixed in version 1.3.
- MCPoison (CVE-2025-54136): From Check Point Research. An attacker gets an MCP config approved once, then quietly swaps in malicious commands with no second prompt.
- CVE-2026-26268 (February 2026): A booby-trapped Git hook hidden in a repository. It fired the moment the agent ran a Git command. Patched in version 2.5.
The sandbox in the 2.x line was Cursor's answer to that earlier wave. DuneSlide is about escaping the answer.
Cato says it is disclosing similar flaws in other coding agents. The problem is structural, not a string of one-offs.
Why Traditional Controls Miss This
No malicious binary lands on the machine. The payload is text the agent reads. Antivirus and EDR signatures do not catch something that is not a file. The mail gateway and WAF sit outside the path.
Identity and MFA do not help. The agent already runs as the legitimate developer. There is no suspicious sign-in to block. There is no sign-in at all. A trusted tool does something it should not, because it read something it should not have.
The trust boundary that fails sits inside the tool. It sits between what the model reads and what it is allowed to do. Classic perimeter thinking does not look there.
What to Do Now
Upgrade to Cursor 3.0 or later. This is the immediate fix. All prior versions are vulnerable. Check your team's installations and enforce the upgrade.
Audit MCP server connections. External data sources are the attack vector. Restrict which servers agents can query. Treat every MCP response as untrusted input crossing a boundary.
Review web search permissions. If Cursor performs web searches, those results can carry malicious payloads. Disable automatic web fetching where possible.
Monitor for sandbox helper modifications. Changes to the cursorsandbox binary indicate active exploitation. Alert on writes to Cursor's application paths.
Segment developer workstations. Limit what credentials and systems are accessible from machines running AI tools. Keep secrets out of the environment the agent can read.
Require human approval for commands. Where the tool allows it, turn on approval prompts for terminal commands. This breaks the zero-click chain.
Inventory your AI tools. Know which AI editors your developers use, which versions they run, and what external sources those tools connect to. You cannot protect what you do not know is installed.
The Bigger Picture
DuneSlide confirms a shift. Prompt injection has stopped being an academic curiosity. It is now a real route to code execution inside tools that developers run with access to source code, secrets, and internal networks.
AI coding agents read external content, interpret instructions, and take actions. That pattern makes prompt injection dangerous in any tool that follows it. Cursor is the current example. The structural problem affects every AI-assisted development environment.
Cato argues the fix is not patch-by-patch. Treating every input as hostile needs to become the default for any agent that reads the open web. Whether that becomes standard practice or stays a scramble after each new CVE is the open question.
The patch is the easy part. The underlying problem endures as long as agents read untrusted content and act on it with the user's privileges.
Sources: Cato AI Labs disclosure, The Hacker News, Hard2Bit, NVD records for CVE-2026-50548 and CVE-2026-50549, CSO Online, ProbablyPwned, Start Debugging, Cursor security advisory GHSA-3v8f-48vw-3mjx.