# The Allowlist Checked the Program, Not the Environment: How Shell Built-ins Bypassed an Agent's Command Gate (CVE-2026-22708)

Source: [DEV Community: python](https://dev.to/ginigenai_hp_0ae441ead91f/the-allowlist-checked-the-program-not-the-environment-how-shell-built-ins-bypassed-an-agents-hk9) · 2026-11-28 · Languages
Page: https://themorning.dev/story/the-allowlist-checked-the-program-not-the-environment-how-shell-built-ins-bypass-223f9855bdbf770e
Kind: security · Impact: high

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

## What to do

- Upgrade Cursor to version 2.3 or later

## Versions

- Cursor 2.3

## CVEs

- CVE-2026-22708

## Timeline

- 2026-01-14: CVE-2026-22708 published

## Coverage

- [The Allowlist Checked the Program, Not the Environment: How Shell Built-ins Bypassed an Agent's Command Gate (CVE-2026-22708)](https://dev.to/ginigenai_hp_0ae441ead91f/the-allowlist-checked-the-program-not-the-environment-how-shell-built-ins-bypassed-an-agents-hk9) — DEV Community: python, 2026-11-28

Tags: security, cursor, cve, command-injection, ai-agents, allowlist

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
