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.
Published: 2026-08-11
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A malicious agent in Cursor’s Auto‑Run Sandbox mode can replace a virtual environment’s Python executable with a wrapper that the Microsoft Python extension runs outside the sandbox. When executed, this wrapper performs arbitrary host commands with the user’s privileges, allowing the attacker to modify files beyond the workspace and launch applications. This vulnerability satisfies CWE‑693, indicating that the system allows manipulation of process control values that should be protected.

Affected Systems

Cursor IDE for macOS, versions prior to 3.1.2 are affected. The CVE applies to any installation of the IDE that uses the Auto‑Run Sandbox mode and the Microsoft Python extension.

Risk and Exploitability

The CVSS score of 7.7 indicates a high impact if exploited. The EPSS score is below 1 %, suggesting that in the current environment exploit attempts are unlikely. The vulnerability is not listed in CISA’s KEV catalog. However, the exploit requires a malicious wrapper inside the sandbox, a condition that can be achieved by a local attacker or via compromised extensions. If the conditions are met, arbitrary host command execution is possible, granting the attacker full user‑level control over the system.

Generated by OpenCVE AI on August 12, 2026 at 20:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Cursor 3.1.2 or newer, which eliminates the ability for the sandbox agent to replace the Python executable.
  • If an upgrade cannot be performed immediately, disable the Auto‑Run Sandbox mode in Cursor until the patch is available.
  • Verify that virtual environments used by the Microsoft Python extension have not been tampered with and that only trusted Python binaries are executed.

Generated by OpenCVE AI on August 12, 2026 at 20:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Cursor
Cursor cursor
Vendors & Products Cursor
Cursor cursor

Tue, 11 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
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.
Title Cursor: Sandbox escape via tampered Python virtual environments
Weaknesses CWE-693
References
Metrics cvssV4_0

{'score': 7.7, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-11T20:01:34.189Z

Reserved: 2026-08-11T14:41:20.121Z

Link: CVE-2026-73217

cve-icon Vulnrichment

Updated: 2026-08-11T20:01:29.852Z

cve-icon NVD

Status : Received

Published: 2026-08-11T18:18:27.180

Modified: 2026-08-11T20:18:47.467

Link: CVE-2026-73217

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T20:30:04Z

Weaknesses
  • CWE-693

    Protection Mechanism Failure