# CVE-2026-31854: Cursor Affected by Arbitrary Code Execution via Prompt Injection and Whitelist Bypass

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-03-11T17:11:52.028Z
- Modified: 2026-06-17T10:34:38.353Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- cursor cursor: < 2.0
- anysphere cursor: before 2.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/cursor/cursor/security/advisories/GHSA-hf2x-r83r-qw5q> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-31854](https://www.cve.org/CVERecord?id=CVE-2026-31854), CVE Terms of Use, modified 2026-03-11
- NVD: [CVE-2026-31854](https://nvd.nist.gov/vuln/detail/CVE-2026-31854), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31854 · Whole record: https://cve.day/CVE-2026-31854.json · Rebuilt by cve.day 2026-11-25T22:59:15.755Z
