Critical Cursor Flaws Could Let Prompt Injection Escape Sandbox
Two bugs in the Cursor AI code editor let a plain prompt break the safety sandbox and run commands on the host machine.
Researchers at Cato AI Labs called the issues DuneSlide. One flaw lets injected text reach the terminal runner without user approval. The other bypasses path checks so the prompt can target any file or directory.
Affects Cursor Desktop versions before 3.0. Cursor 3.0, released April 2, includes the fix. The editor runs untrusted AI suggestions directly against the local workspace.
Cato released a 140-line reproduction that chains both issues in one prompt.
