Cursor Desktop sandbox escape via agent-controlled working directory
CVE-2026-50548 · GHSA-3p48-7v9f-v5cw · published 2026-06-05
- Severity
- Critical
- CVSS score
- Not scored
- Chance of exploitation (EPSS)
- Not scored
- Fixed in
- 3.0
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Total
- CISA SSVC
A malicious agent could set working_directory to a sensitive location and 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.
Upgrade cursor to 3.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Update Cursor to version 3.0. The sandbox no longer grants write access based on an agent-controlled working directory.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| cursor | App | < 3.0 | 3.0 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- CriticalCursor Desktop sandbox escape via symlink and failed path canonicalizationcursor
- HighSandbox escape via tampered Python virtual environmentscursor
- HighSandbox escape via launching privileged containerscursor
- HighCursor Desktop sandbox escape via Claude hook configurationcursor
- HighSandbox escape via Git hookscursor
- HighTerminal Tool Allowlist Bypass via Environment Variablescursor
The impact, patch and workaround text comes from the advisory, shortened (published by Cursor). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.