CVE-2026-26268

Cursor sandbox escape via Git hooks

State
Published
Severity
8.1 High
Published
Feb 13, 2026
Updated
Feb 13, 2026
Reserved
Feb 12, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:HGitHub_M

Weaknesses

Affected Products

ProductVersions
cursorcursor
  • < 2.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.