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

> CVE-2026-22708: Cursor has a Terminal Tool Allowlist Bypass via Environment Variables. CVSS 9.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-22708
Last updated: 2026-06-17T10:20:16Z

- Published: 2026-01-14 16:43 UTC · Updated: 2026-06-17 10:20 UTC · Assigner: GitHub\_M
- CVSS: 9.8 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.82%, 57th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-15, CWE-269, CWE-74, CWE-77, CWE-78, CWE-94

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

## Affected vendors and products

- cursor: cursor

## Tracked companies

- [Cursor](https://rewindex.com/company/cursor.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-22708)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-22708)
- [https://github.com/cursor/cursor/security/advisories/GHSA-82wg-qcm4-fp2w](https://github.com/cursor/cursor/security/advisories/GHSA-82wg-qcm4-fp2w)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-22708 · Markdown: https://rewindex.com/cve/CVE-2026-22708.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-22708 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:04:14.031Z
