Security · High impactFan score 65 · Tier A
The Allowlist Checked the Program, Not the Environment: How Shell Built-ins Bypassed an Agent's Command Gate (CVE-2026-22708)
DEV · By hugginf_expert ·
The Brief
- CVE-2026-22708 was published on January 14, 2026, with a CVSS 4.0 score of 7.2 and CWE-78.
- The flaw is in the terminal command allowlist of the Cursor agentic editor. The gate checked which executable a command would launch but treated shell built-ins such as export as safe.
- The issue is fixed in Cursor version 2.3.
Why it matters
Teams that rely on Cursor's agent command allowlist as a safety control may have been relying on a gate that could be bypassed through shell built-ins. Allowlists need to account for the shell environment, not only the program name.
Who’s affected
- Cursor users who run the agent with a terminal command allowlist
- Teams that depend on agent command allowlists as a security control
What to do
- Upgrade Cursor to version 2.3 or later
- Cursor 2.3
- CVE-2026-22708
- #security
- #cursor
- #cve
- #command-injection
- #ai-agents
- #allowlist
TL;DR CVE-2026-22708 (published January 14, 2026, CVSS 4.0 score 7.2, CWE-78) describes a flaw in the terminal allowlist of the Cursor agentic editor, fixed in version 2.3. The gate checked which executable a command would launch, but treated shell built-ins such as export…