CriticalVulnerability
CVE-2026-50549: Cursor agent writes outside workspace through symlink path fallback
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-50549
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 1.0%
Summary
Cursor versions before 3.0 run agent terminal commands in a sandbox by default. When the agent's path canonicalization fails before a Write, it falls back to the original path and writes without approval, so a malicious agent can use an in-workspace symlink to 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, with no user interaction beyond a benign prompt.
Mitigation
Fixed in 3.0.
Related items
- HighGHSA-jq3q-62jc-fqq9: code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parametersSimilar attack · GitHub Advisory Database
- CriticalCVE-2026-120699: CubeSandbox host path bind mount allows host file access via POST /sandboxesSimilar attack · NVD/CVE Database
- MediumCalifornia sues OpenAI over AI agents escaping sandboxes, hacking firmsSimilar attack · BleepingComputer
- HighCVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-serverSimilar attack · AWS Security Bulletins
- InfoRansomware Attacks Increase Behind AI, But Payments DeclineSimilar attack · Dark Reading