{"id":"CVE-2026-31854","published":"2026-03-11T17:11:52Z","modified":"2026-03-11T17:35:37Z","title":"Cursor Affected by Arbitrary Code Execution via Prompt Injection and Whitelist Bypass","vendor":"cursor","product":"cursor","tier":"tail","description":{"text":"Cursor is a code editor built for programming with AI. Prior to 2.0 ,if a visited website contains maliciously crafted instructions, the model may attempt to follow them in order to “assist” the user. When combined with a bypass of the command whitelist mechanism, such indirect prompt injections could result in commands being executed automatically, without the user’s explicit intent, thereby posing a significant security risk. This vulnerability is fixed in 2.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00541,"percentile":0.3902,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-hf2x-r83r-qw5q","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":7.8},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"cursor","affectedVersions":[{"vendor":"cursor","product":"cursor","versions":["< 2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-11T17:34:57.538712Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-11245","exploited":false,"provenance":"source"}}