Vulnerability · Published Aug 11, 2026 · Assigned by GitHub_M
CVE-2026-73217Cursor: Sandbox escape via tampered Python virtual environments
High 7.7
In plain English
A high-severity security flaw in cursor from cursor. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities).
Official description
Cursor is a code editor built for programming with AI. Prior to 3.1.2, 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 that the Microsoft Python extension invokes outside the sandbox, allowing arbitrary host commands with the user's privileges, including modifying files outside the workspace and launching applications. This issue is fixed in version 3.1.2.
Affected products (as reported)
Weakness: CWE-693 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/cursor/cursor/security/advisories/GHSA-p9g2-cr55-cw9c x_refsource_CONFIRM