Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Anysphere | Cursor | < 2.5 |
Related Weaknesses (CWE)
References
FAQ
What is CVE-2026-26268?
CVE-2026-26268 is a vulnerability with a CVSS score of 8.0 (HIGH). 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 impro...
How severe is CVE-2026-26268?
CVE-2026-26268 has been rated HIGH with a CVSS base score of 8.0/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-26268?
Check the references section above for vendor advisories and patch information. Affected products include: Anysphere Cursor.