CVE-2026-50549 Details
Description
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.
A vulnerability in Cursor, a code editor designed for programming with AI, allows for sandbox escape and non-sandboxed remote code execution. This issue affects versions prior to 3.0. The vulnerability arises because, before writing files, the application attempts to canonicalize the target path to ensure it remains within the designated workspace. However, if this process fails, the application defaults to the original path and writes without proper authorization. A malicious agent can exploit this by creating a symlink within the workspace that points to an external location, deliberately causing the canonicalization to fail—either by pointing to a non-existent target or by removing read permissions from the path. As a result, the agent can write files through the symlink to arbitrary locations outside the workspace, using the user's privileges. This exploitation could involve overwriting the 'cursorsandbox' helper, allowing subsequent commands to be executed outside the sandboxed environment, all without any user interaction except for a harmless prompt.
Users are advised to update Cursor to version 3.0, where this vulnerability has been addressed. In the patched version, canonicalization failures are treated as untrusted, and writes are blocked when a target path cannot be properly resolved, including cases where read permissions are removed to disrupt the resolution process.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cursor/cursor/security/advisories/GHSA-3v8f-48vw-3mjx | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| anysphere cursor | < 3.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 25, 2026 | New CVE Received | [email protected] |