High severity8.0NVD Advisory· Published Feb 13, 2026· Updated Jun 17, 2026
CVE-2026-26268
CVE-2026-26268
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
3Patches
Vulnerability mechanics
References
1- github.com/cursor/cursor/security/advisories/GHSA-8pcm-8jpx-hv8rnvdVendor Advisory
News mentions
6- Cursor Flaw Lets Malicious Cloned Repositories Trigger Windows Code ExecutionThe Hacker News · Jul 15, 2026
- Critical Cursor Flaws Could Let Prompt Injection Escape Sandbox and Run CommandsThe Hacker News · Jul 1, 2026
- ⚡ Weekly Recap: AI-Powered Phishing, Android Spying Tool, Linux Exploit, GitHub RCE & MoreThe Hacker News · May 4, 2026
- 4th May – Threat Intelligence ReportCheck Point Research · May 4, 2026
- In Other News: Scattered Spider Hacker Arrested, SOC Effectiveness Metrics, NSA Tool VulnerabilitySecurityWeek · May 1, 2026
- Google Fixes CVSS 10 Gemini CLI CI RCE and Cursor Flaws Enable Code ExecutionThe Hacker News · Apr 30, 2026