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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Cursor to a version that resolves this vulnerability.

    Fixed in 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
DescriptionSeverityWeakness
Feb 18, 2026
Data Sourced
via NVD·05:59 PM
Affected Software
Updated
via NVD·05:59 PM
Severity
Event
via NVD·05:59 PM
Feb 19, 2026
Event
via FIRST·12:00 AM
Apr 30, 2026
News Published
via The Hacker News·07:07 AM
May 4, 2026
News Published
via The Hacker News·02:23 PM
May 5, 2026
Exploit Published
via GitHub·02:57 PM
Jul 1, 2026
News Published
via The Hacker News·02:42 PM
Jul 15, 2026
News Published
via The Hacker News·10:55 AM

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