Vulnerability details
CVE-2026-22708
cursor cursor
Cursor has a Terminal Tool Allowlist Bypass via Environment Variables
CVSS 4.0
7.2High
Official 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.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 7.2High | 4.0 | CVEProject cvelistV5 (CNA) (GitHub_M) | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| cursor | cursor | < 2.3 | CVEProject cvelistV5 (CNA) |
References and advisories
1- https://github.com/cursor/cursor/security/advisories/GHSA-82wg-qcm4-fp2w x_refsource_CONFIRM
Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.
Details
- Published
- 2026-01-14
- Last updated
- 2026-01-14
- State
- Published
- Assigner (CNA)
- GitHub_M
Exploit prediction (EPSS)
0.81%
Probability of exploitation in 30 days
57.2%
Percentile (among all CVEs)
SSVC assessment (CISA)
- Automatable
- No
- Exploitation
- None
- Technical impact
- Total
Weaknesses (CWE)
- CWE-15External Control of System or Configuration Setting
- CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-94Improper Control of Generation of Code ('Code Injection')
- CWE-269Improper Privilege Management