home / blog

2026-11-01 · critical

CVE-2026-22708: Cursor Allowlist Bypass in Auto-Run Mode

Allowlist bypass in Cursor pre-2.3: shell environment poisoning via prompt injection. CVSS 9.8 critical.

CVE-2026-22708: Cursor Allowlist Bypass in Auto-Run Mode

CVE-2026-22708 describes an allowlist bypass in Cursor Agent when Auto-Run Mode and Allowlist mode are enabled. Cursor is an AI-native code editor increasingly used by development teams. The vulnerability allows an attacker to execute shell built-ins without appearing in the allowlist and without requiring user approval, via direct or indirect prompt injection. The attacker can poison the shell environment by modifying or setting environment variables that influence the behavior of trusted commands.

The vulnerability is rated CVSS 9.8 critical. It was publicly disclosed on January 14, 2026, and the fix is available in version 2.3. Public signals on X indicate awareness of the flaw, with discussions mentioning potential consequences: lateral movement, privilege escalation, and supply chain tampering risks.

System administrators and IT teams must urgently verify which Cursor instances are in use. If upgrading to 2.3+ is not immediately possible, disable Auto-Run Mode or Allowlist mode as temporary mitigation. Given the high CVSS and the nature of the vulnerability, the upgrade is a priority to protect the integrity of development and build environments.

At a glance

What
Shell built-ins bypass allowlist when Cursor Agent is in Auto-Run Mode with Allowlist mode enabled. Attacker via prompt injection (direct or indirect) poisons the shell environment by modifying or setting environment variables that influence the behavior of trusted commands.
Severity
CVSS 9.8 critical. Enables lateral movement, privilege escalation, and supply chain tampering risks. No native mitigation prior to patch.
Affected versions
Cursor prior to version 2.3. Whether other products or derivatives are affected: not reported.
Fix
Update immediately to Cursor 2.3 or later. The vulnerability has been resolved in this version.
Status
Vulnerability publicly disclosed on January 14, 2026. Fix confirmed available in version 2.3. Public signals on X indicate awareness of the flaw.
Action
Verify Cursor version in use across development teams. If immediate update is not possible, disable Auto-Run Mode or Allowlist mode as temporary mitigation. Prioritize upgrade given the high severity.

Sources: NVD, CVE-2026-22708

← All articles