CVE-2026-50548: DuneSlide Working Directory Sandbox Escape in Cursor
- Vendor
- Anysphere
CVE-2026-50548 is a critical path traversal and sandbox-escape vulnerability in Cursor versions prior to 3.0. Cursor’s agent terminal-command sandbox grants write access to the command working directory. An agent-controlled working_directory parameter could be set to a location outside the intended workspace, causing that external location to be included in the sandbox write policy. This enables arbitrary file writes outside the workspace with the privileges of the logged-in user. An attacker can use the out-of-bounds write to replace a sandbox component or modify other sensitive files, causing subsequent agent commands to execute outside the sandbox.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits an attacker to escape Cursor’s intended workspace and terminal sandbox, write arbitrary files as the current user, and obtain unsandboxed code execution. This can result in full compromise of the developer workstation, including modification of user configuration or persistence mechanisms and access to source code, credentials, environment variables, and resources reachable through authenticated development or SaaS sessions.
Mitigation
If you can’t patch tonight, do this now.
Until all installations are upgraded, do not allow Cursor agents to process untrusted prompts or externally sourced content, including content retrieved through agent-connected services and web search. Restrict or disable autonomous terminal-command execution where feasible, limit agent filesystem permissions to dedicated non-sensitive workspaces, and monitor for unexpected writes outside project directories or modifications affecting Cursor sandboxing and startup-related components.
Remediation
Patch, then assume compromise.
Upgrade Cursor to version 3.0 or later. Version 3.0 corrects handling of the working_directory parameter by enforcing access controls that prevent agent-selected working directories from expanding writable sandbox scope beyond the authorized workspace.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-50548 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-50548 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-50548?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-50548.
- Is there a patch for CVE-2026-50548?
- Upgrade Cursor to version 3.0 or later. Version 3.0 corrects handling of the working_directory parameter by enforcing access controls that prevent agent-selected working directories from expanding writable sandbox scope beyond the authorized workspace.
- What products are affected by CVE-2026-50548?
- Anysphere Cursor.
- How severe is CVE-2026-50548?
- CVE-2026-50548 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 1.0% (62nd percentile) as of Sep 25, 2026.
Recent activity
31 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.