Vulnerability · high · CVSS 7.2
CVE-2026-22708: shell built-ins bypass Cursor agent command allowlist
Tier A · Patch today – Before you go home
Who’s exposed: Cursor agent users with terminal command allowlists before version 2.3
Tier A because: Core infrastructure or popular tool AND remote, no login AND full takeover
Reach
Attack
Damage
Fix
Popular tool · Remote, no login · Full takeover
What to do
- Upgrade Cursor to version 2.3 or later
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.
The checklist behind the tier
Checklist · 4 of 10 yes
| Yes | Hits tech teams | Judgment: Cursor is a developer code editor used by software teams. |
| No | Core infrastructure | Judgment: a flaw in one AI code editor's allowlist is not core infrastructure. |
| Yes | Popular tool | Judgment: Cursor is a widely used mainstream AI coding editor. |
| No | Exploited in the wild | DEV Community describes the flaw only; it reports no observed attacks. |
| No | Public exploit | DEV Community describes the bypass; it does not say exploit code is published. |
| Yes | Remote, no login | CVSSCVE-2026-22708: CVSS 7.2 – network, no privileges, no user interaction |
| Yes | Full takeover | CVSSCVE-2026-22708: CVSS rates confidentiality and integrity impact high |
| No | Secrets exposed | DEV Community reports no stolen or exposed credentials, data or source code. |
| No | Supply chain | DEV Community describes a command allowlist flaw, not malicious code shipped through a trusted channel. |
| No | No fix yet | DEV Community states the flaw is fixed in Cursor version 2.3. |
The official record
From CVE.org, CISA’s Known Exploited Vulnerabilities catalog, FIRST EPSS and the GitHub Advisory Database. Where these answer a checklist fact, they win over the reporting.
CVE-2026-22708 ↗CVSS 7.2 high AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Cursor has a Terminal Tool Allowlist Bypass via Environment Variables
- Exploited
- Not in CISA’s exploited catalog
- EPSS
- <1% chance of exploitation in the next 30 days · higher than 45% of all CVEs
- Weakness
- CWE-15, CWE-74, CWE-77, CWE-78, CWE-94, CWE-269
Timeline
Source
The Allowlist Checked the Program, Not the Environment: How Shell Built-ins Bypassed an Agent's Command Gate (CVE-2026-22708) ↗ DEV Community: python · 1h ago
First seen · 1 source · Full story page · How tiers are decided