HighVulnerabilityLLM-specific
CVE-2026-26268: Cursor sandbox escape via writing .git configuration
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-26268
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.7%
Summary
CVE-2026-26268 affects Cursor, a code editor built for programming with AI, in versions prior to 2.5. A malicious agent, for example through prompt injection, could write to improperly protected .git settings, including git hooks, enabling out-of-sandbox RCE the next time they are triggered. No user interaction is required because Git executes these commands automatically.
Mitigation
Fixed in version 2.5.
Related items
- InfoTop agent skill security resources — November 2026Similar attack · Adversa AI Blog
- InfoHow to Turn AI Red Team Findings Into Runtime ControlsSimilar attack · Straiker Blog
- MediumDocker Sandboxes vulnerability lets AI agents access sensitive files outside their sandbox (CVE-2026-103916) | Endor LabsSimilar attack · Endor Labs Blog
- MediumFree the Model, Sell the Gateway: Prompt Adware hidden in Jailbreak BundlesSimilar attack · Check Point Research
- InfoRight Tool, Wrong Parameters: Defending LLM Agents Against Parameter PoisoningSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)