# CVE-2026-22708: Cursor has a Terminal Tool Allowlist Bypass via Environment Variables

- Severity: High 7.2 (CVSS:4.0, scored by 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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 58% of CVEs (2026-12-01)
- Published: 2026-01-14T16:43:54.000Z
- Modified: 2026-06-17T10:20:16.437Z
- Weaknesses: CWE-15, CWE-74, CWE-77, CWE-78, CWE-94, CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cursor cursor: < 2.3
- anysphere cursor: before 2.3

## Every score

- GitHub_M: CVSS:4.0 7.2 High `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/cursor/cursor/security/advisories/GHSA-82wg-qcm4-fp2w> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-22708](https://www.cve.org/CVERecord?id=CVE-2026-22708), CVE Terms of Use, modified 2026-01-14
- NVD: [CVE-2026-22708](https://nvd.nist.gov/vuln/detail/CVE-2026-22708), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22708 · Whole record: https://cve.day/CVE-2026-22708.json · Rebuilt by cve.day 2026-11-25T22:59:12.831Z
