Skip to content
CriticalVulnerability

CVE-2026-50549: Cursor agent writes outside workspace through symlink path fallback

Identifier
CVE-2026-50549
Published
Record updated
View JSON
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.