# CVE-2026-50549: Cursor Desktop sandbox escape via symlink and failed path canonicalization

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-12-01)
- Published: 2026-06-25T18:47:45.070Z
- Modified: 2026-06-26T16:51:39.467Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cursor cursor: < 3.0
- anysphere cursor: before 3.0

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/cursor/cursor/security/advisories/GHSA-3v8f-48vw-3mjx> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-50549](https://www.cve.org/CVERecord?id=CVE-2026-50549), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-50549](https://nvd.nist.gov/vuln/detail/CVE-2026-50549), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-50549 · Whole record: https://cve.day/CVE-2026-50549.json · Rebuilt by cve.day 2026-11-25T22:59:26.412Z
