Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-22708: Cursor shell built-ins bypass allowlist approval in Auto-Run Mode

Identifier
CVE-2026-22708
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%

Summary

CVE-2026-22708 affects Cursor, a code editor built for programming with AI, prior to 2.3. When the Cursor Agent runs in Auto-Run Mode with Allowlist mode enabled, certain shell built-ins can execute without appearing in the allowlist and without user approval. An attacker using direct or indirect prompt injection can set, modify, or remove environment variables that influence trusted commands, poisoning the shell environment.

Mitigation

Fixed in 2.3.