CVE-2026-26268
Cursor is a code editor built for programming with AI. Sandbox escape via writing .git configuration was possible in versions prior to 2.5. A malicious agent (ie prompt injection) could write to improperly protected .git settings, including git hooks, which may cause out-of-sandbox RCE next time they are triggered. No user interaction was required as Git executes these commands automatically. Fixed in version 2.5.
- Affected products
- Cursor
- Anysphere Cursor
- < 2.5
- Fix
- Available
- CVSS 3.1
- 9.9 CRITICAL
- EPSS
- 0.7% (48th percentile)
- Weakness
- CWE-862
- NVD status
- Analyzed
- Published
- 2026-02-13
CVE-2026-26268 at NVD
1 known exploit for CVE-2026-26268
Proof-of-concept code and exploit modules indexed by Sploitus