CVE-2026-22708

Source
https://cve.org/CVERecord?id=CVE-2026-22708
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22708.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-22708
Aliases
  • GHSA-82wg-qcm4-fp2w
Published
2026-01-14T16:43:54Z
Modified
2026-03-13T04:08:10.781831Z
Severity
  • 7.2 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Cursor has a Terminal Tool Allowlist Bypass via Environment Variables
Details

Cursor is a code editor built for programming with AI. Prior to 2.3, hen the Cursor Agent is running in Auto-Run Mode with Allowlist mode enabled, certain shell built-ins can still be executed without appearing in the allowlist and without requiring user approval. This allows an attacker via indirect or direct prompt injection to poison the shell environment by setting, modifying, or removing environment variables that influence trusted commands. This vulnerability is fixed in 2.3.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22708.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-15",
        "CWE-269",
        "CWE-74",
        "CWE-77",
        "CWE-78",
        "CWE-94"
    ]
}
References

Affected packages

Git /

Affected ranges

Database specific

unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "fixed": "2.3"
            }
        ]
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22708.json"