CVE-2026-50549: Cursor Desktop sandbox escape via symlink and failed path canonicalization
Cursor is a code editor built for programming with AI. Prior to 3.0, Cursor runs agent terminal commands in a sandbox by default. Before a Write, the agent canonicalizes the target path to confirm it stays inside the workspace, but when canonicalization fails it falls back to the original path and writes without approval. A malicious agent can create an in-workspace symlink that points outside the workspace and force canonicalization to fail — either because the target does not exist or because read permission is removed from the path — so the agent writes through the symlink to an arbitrary location without approval. A malicious agent could write arbitrary files outside the workspace under the user's privileges. This enables non-sandboxed Remote Code Execution — for example by overwriting the cursorsandbox helper so later commands run unsandboxed — with no user interaction beyond a benign prompt. This vulnerability is fixed in 3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Cursor Desktopto a version that resolves this vulnerability.Fixed in 3.0 - Configuration
Ensure Cursor agent terminal commands run in the sandbox (non-sandboxed agent terminal command execution must be disabled) to prevent sandbox escape via symlink and failed path canonicalization.
Cursor Desktop sandboxing for agent terminal commands = enabled (default in affected versions: prior to 3.0)
Event History
Frequently Asked Questions
What is the severity of CVE-2026-50549?
CVE-2026-50549 has a risk rating of 80, indicating it presents a significant security concern.
How do I fix CVE-2026-50549?
To mitigate CVE-2026-50549, update Cursor Desktop to version 3.0 or later where the vulnerability is addressed.
What type of vulnerability is CVE-2026-50549?
CVE-2026-50549 is classified as a sandbox escape vulnerability related to symlink and failed path canonicalization.
Who is affected by CVE-2026-50549?
Users of Cursor Desktop versions prior to 3.0 are affected by CVE-2026-50549.
What impact does CVE-2026-50549 have on users?
CVE-2026-50549 may allow unauthorized access to the system by escaping the sandbox environment, leading to potential data breaches.