Skip to content

CVE-2026-26268 Cursor sandbox escape via Git hooks

CriticalCVSS 9.9 EPSS 0.69%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
Anysphere, Inc. Cursor < 2.5 2.5 Fixed
cursor = < 2.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cursor = < 2.5 No fix listed
Anysphere, Inc. Cursor < 2.5 2.5

References