CVE-2026-22708CRITICAL 9.8EPSS p35.5%
CVE-2026-22708CVE-2026-22708
Description
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 variables that influence trusted commands. This vulnerability is fixed in 2.3.
Scoring
| CVSS 3.1 | 9.8 (CRITICAL) |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| EPSS | 0.45% probability of exploitation · percentile 35.5% · 2026-06-19T12:03:05Z |
| Published | 2026-01-14 |
| Last modified | 2026-02-03 |
Underlying weaknesses· 6
References
6
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Weakness | External Control of System or Configuration Settingcwe-15 | 0% | live |
| Weakness | Improper Privilege Managementcwe-269 | 0% | live |
| Weakness | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')cwe-74 | 0% | live |
| Weakness | Improper Neutralization of Special Elements used in a Command ('Command Injection')cwe-77 | 0% | live |
| Weakness | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')cwe-78 | 0% | live |
| Weakness | Improper Control of Generation of Code ('Code Injection')cwe-94 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.