Auth bypass in Anysphere Cursor
CVE-2026-26268
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.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.007, 53.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Anysphere Cursor
- Cursor — versions < 2.5
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- dhawaldesai/agentic-ioc-scanner (1 star, last pushed 2026-05-20): IOC scanner for agentic AI coding tools — detects Mini Shai-Hulud, Gemini CLI RCE, Cursor CVE-2026-26268, and DPRK PromptMink.
References
- https://github.com/cursor/cursor/security/advisories/GHSA-8pcm-8jpx-hv8r (Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.