CVE-2026-26268: Cursor sandbox escape via Git hooks

Published Feb 13, 2026
·
Updated

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 Software

2 affected components
Cursor Cursor<2.5
anysphere Cursor<2.5

Event History

Feb 13, 2026
CVE Published
via MITRE·04:54 PM
Data Sourced
via MITRE·04:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Nov 23, 58106
Event
via FIRST·05:09 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-26268?

CVE-2026-26268 has been classified with a high severity due to its potential for causing unauthorized code execution through a sandbox escape.

2

How do I fix CVE-2026-26268?

To fix CVE-2026-26268, upgrade Cursor to version 2.5 or later to ensure proper protection of .git settings.

3

What versions of Cursor are affected by CVE-2026-26268?

Versions of Cursor prior to 2.5 are affected by CVE-2026-26268.

4

What type of vulnerability is CVE-2026-26268?

CVE-2026-26268 is a sandbox escape vulnerability that allows malicious agents to manipulate .git configurations.

5

Who can exploit CVE-2026-26268?

CVE-2026-26268 can be exploited by malicious agents through prompt injection techniques targeting vulnerable versions of Cursor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203