CVE-2026-22708: Vulnerability in Anysphere Cursor
Critical. Cursor is a code editor built for programming with AI. Prior to 2.3, hen the Cursor Agent is running in Auto-Run Mode with Allowlist mode enabled, certain shell built-ins can still be executed without appearing in the allowlist and without requiring user approval. This allows an attacker via indirect or direct prompt injection to poison the shell environment by setting, modifying, or removing environment...
CWE-15, CWE-74
- 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-15, CWE-74, CWE-77, CWE-78, CWE-94, CWE-269
- Published
- 14 Jan 2026
- Last change
- 17 Jun 2026
Affected products
Affected versions and the first fixed release
- Anysphere Cursor Before 2.3. Fixed in 2.3
Advisories
Vendor and security advisories
Related
- Cursor vulnerabilities Recent advisories, watch this product