Skip to content
CriticalVulnerability

CVE-2026-50548: Cursor sandbox escape through agent working_directory parameter

Identifier
CVE-2026-50548
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 prior to 3.0 run agent terminal commands in a sandbox that grants write access to the command's working directory. A flaw in how the agent could modify the working_directory parameter let the sandbox include writable paths outside the workspace, so a malicious agent could write arbitrary files under the user's privileges, including overwriting the cursorsandbox helper to run later commands unsandboxed, with no user interaction beyond a benign prompt.

Mitigation

This vulnerability is fixed in 3.0.