{"id":"CVE-2026-50549","aliases":["CVE-2026-50549"],"related":[],"kind":"vulnerability","state":"published","title":"Cursor Desktop sandbox escape via symlink and failed path canonicalization","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-06-25T18:47:45.070Z","modified":"2026-06-26T16:51:39.467Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"version":"< 3.0","status":"affected"}],"vendor":"cursor","product":"cursor","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.0"}],"vendor":"anysphere","product":"cursor","cpe":"cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-3v8f-48vw-3mjx","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-06-25T19:02:16.377Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-50549","url":"https://www.cve.org/CVERecord?id=CVE-2026-50549","licence":"CVE Terms of Use","modified":"2026-06-25T19:02:41.108Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-50549","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50549","licence":"Public domain","modified":"2026-06-26T16:51:39.467Z"}],"updatedAt":"2026-11-25T22:59:26.412Z","epss":{"score":0.01267,"percentile":0.70594,"date":"2026-12-01T12:00:22.000Z"}}