CursorGHSA-p9g2-cr55-cw9c
Sandbox escape via tampered Python virtual environments
Fix: upgrade to 3.1.2 or later
Cursor IDE for macOS allows an agent running in Auto-Run Sandbox mode to replace a virtual environment’s Python executable with a malicious wrapper. When the Microsoft Python extension invokes that interpreter outside the sandbox, the wrapper can execute arbitrary host commands with the user’s privileges, including modifying files outside the workspace and launching applications.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Cursor Product | < 3.1.2 | 3.1.2 |
Details and references
- Severity from
- GitHub (reviewed advisory)