{"id":"CVE-2026-22708","published":"2026-01-14T16:43:54Z","modified":"2026-01-14T16:59:53Z","title":"Cursor has a Terminal Tool Allowlist Bypass via Environment Variables","vendor":"cursor","product":"cursor","tier":"tail","description":{"text":"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.\nThis 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00817,"percentile":0.58018,"provenance":"source"},"cwes":[{"id":"CWE-15","name":"External Control of System or Configuration Setting"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-269","name":"Improper Privilege Management"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-82wg-qcm4-fp2w","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":11.6},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"cursor","affectedVersions":[{"vendor":"cursor","product":"cursor","versions":["< 2.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-14T16:59:44.747154Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-2678","exploited":false,"provenance":"source"}}