Code Execution Flaw in Cursor Code Editor by Cursor Technologies
CVE-2026-50548
9.3CRITICAL
What is CVE-2026-50548?
A security vulnerability exists in the Cursor Code Editor, where it runs agent terminal commands in a sandbox environment. However, prior to version 3.0, the sandbox configuration allowed an agent to modify the working_directory parameter. This could lead to malicious agents writing files to unintended locations, bypassing the sandbox's restrictions. An attacker could exploit this by redirecting the working_directory to sensitive areas and potentially executing arbitrary code without user consent, thus compromising system integrity. The issue has been resolved in version 3.0.
Affected Version(s)
cursor < 3.0
