CVE-2026-50548: Vulnerability in Anysphere Cursor
Critical. Cursor is a code editor built for programming with AI. Prior to 3.0, Cursor runs agent terminal commands in a sandbox by default, and the sandbox grants write access to the command's working directory. A flaw was identified in how the agent could modify the working_directory parameter, which could cause the sandbox to include writable paths outside the intended workspace. A malicious agent could set...
CWE-22
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-22
- Published
- 25 Jun 2026
- Last change
- 26 Jun 2026
Affected products
Affected versions and the first fixed release
- Anysphere Cursor Before 3.0. Fixed in 3.0
Advisories
Vendor and security advisories
Related
- Cursor vulnerabilities Recent advisories, watch this product