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.
Published:Feb 13, 2026
Last Modified:Apr 17, 2026
EPS:Feb 13, 2026
EPSS Score:0.00042
CVSS Score:8.1
Affected Products
Vendor
Product
Action
Vendor
Anysphere
Product
Cursor
Anysphere
Cursor
Vendor
Cursor
Product
Cursor
Cursor
Cursor
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
