International
The Morning Dev

Only the news worth knowing

‹
 
A65/100

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

  1. 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
YesHits tech teamsJudgment: Cursor is a developer code editor used by software teams.
NoCore infrastructureJudgment: a flaw in one AI code editor's allowlist is not core infrastructure.
YesPopular toolJudgment: Cursor is a widely used mainstream AI coding editor.
NoExploited in the wildDEV Community describes the flaw only; it reports no observed attacks.
NoPublic exploitDEV Community describes the bypass; it does not say exploit code is published.
YesRemote, no loginCVSSCVE-2026-22708: CVSS 7.2 – network, no privileges, no user interaction
YesFull takeoverCVSSCVE-2026-22708: CVSS rates confidentiality and integrity impact high
NoSecrets exposedDEV Community reports no stolen or exposed credentials, data or source code.
NoSupply chainDEV Community describes a command allowlist flaw, not malicious code shipped through a trusted channel.
NoNo fix yetDEV 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

    NVD

Timeline

  1. CVE-2026-22708 published

  2. DEV Community: python

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

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

Tier A: CVE-2026-22708: shell built-ins bypass Cursor agent command allowlist – The Morning Dev