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

> CVE-2026-50549: Cursor Desktop sandbox escape via symlink and failed path canonicalization. CVSS 9.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-50549
Last updated: 2026-06-26T16:51:39Z

- Published: 2026-06-25 18:47 UTC · Updated: 2026-06-26 16:51 UTC · Assigner: GitHub\_M
- CVSS: 9.8 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.0%, 63th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-59

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

## Affected vendors and products

- cursor: cursor

## Tracked companies

- [Cursor](https://rewindex.com/company/cursor.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-50549)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-50549)
- [https://github.com/cursor/cursor/security/advisories/GHSA-3v8f-48vw-3mjx](https://github.com/cursor/cursor/security/advisories/GHSA-3v8f-48vw-3mjx)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-50549 · Markdown: https://rewindex.com/cve/CVE-2026-50549.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-50549 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:04:37.462Z
