Sandbox Escape in Cursor Code Editor by Cursor
CVE-2026-50549
Key Information:
Badges
What is CVE-2026-50549?
The Cursor Code Editor, a tool designed for programming with AI, has a vulnerability that allows a malicious agent to bypass its sandbox environment. Prior to version 3.0, the editor runs terminal commands in a sandbox but uses a flawed canonicalization process when verifying file paths. If canonicalization fails—potentially due to user manipulation—a malicious agent can create a symbolic link that points outside the designated workspace. This allows unauthorized file writes under the user’s privileges, enabling non-sandboxed remote code execution through the modification of critical components, such as the cursorsandbox helper. Users are encouraged to upgrade to version 3.0 or later to mitigate this risk.
Affected Version(s)
cursor < 3.0
News Articles
Critical Cursor Flaws Could Let Prompt Injection Escape Sandbox and Run Commands
î „Swati Khandelwalî ‚Jul 01, 2026AI Coding / Vulnerability
3 weeks ago
Critical Cursor Flaws Could Let Prompt Injection Escape Sandbox and Run Commands
Patched in Cursor 3.0, CVE-2026-50548 and CVE-2026-50549 could enable zero-click command execution via hidden instructions.
4 weeks ago
References
CVSS V4
Timeline
- 👾
Exploit known to exist
- đź“°
First article discovered by The Hacker News
Vulnerability published
Vulnerability Reserved
