CVE-2026-22708CWE-15CWE-269CWE-74CWE-77CWE-78CWE-94

Cursor has a Terminal Tool Allowlist Bypass via Environment Variables

High · published January 14, 2026

CVSS v4.0
7.2
EPSS
1%
Percentile
56.7
In the wild
Unconfirmed
What it is

⚡ A sneaky way into your shell! Before version 2.3, the Cursor code editor with Allowlist mode could let bad actors execute shell commands without needing a ticket, just like an unmonitored guest sneaking into a party! Think of it like a restaurant where customers can make changes to the kitchen orders without the chef or waitstaff ever checking the menu — just because the restaurant has a list of approved dishes doesn’t mean every ingredient is safe. An attacker could potentially poison the shell environment, altering or removing crucial environment variables. This manipulation might change the course of trusted commands, leading to unauthorized actions or data exposure. It’s a big risk that could spell chaos for your development process!

Put simply

Think of it like a restaurant where customers can make changes to the kitchen orders without the chef or waitstaff ever checking the menu — just because the restaurant has a list of approved dishes doesn’t mean every ingredient is safe. This vulnerability allows certain shell built-ins to execute without being checked against the Allowlist when the Cursor Agent runs in Auto-Run Mode. This can be triggered by prompt injection, bypassing standard controls.

What to do

An attacker could potentially poison the shell environment, altering or removing crucial environment variables. This manipulation might change the course of trusted commands, leading to unauthorized actions or data exposure. It’s a big risk that could spell chaos for your development process! Upgrade to version 2.3 immediately to patch this vulnerability. Ensure that your team is aware of the implications of indirect prompt injections and review your security practices around shell commands. Implement regular audits of permissions and environment variables! You've got this! Stay vigilant and secure your environment today! 🛡️

The record
Technical detail
CVSS v4.0
7.2 · HIGH
Vector
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
EPSS
0.00817 · 56.7th percentile
Weaknesses
CWE-15 · External Control of System or Configuration Setting; CWE-269 · Improper Privilege Management; CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'); CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection'); CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-01-14T16:43Z
EPSS history
Timeline
  • 14 JAN 16:43Z
    Cursor has a Terminal Tool Allowlist Bypass via Environment Variables
    cvelistv5