CVE-2026-26268 in Anysphere Cursor
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. ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Anysphere | Cursor | < 2.5 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-26268 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-075092-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Published | 2026-02-13 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-862: Missing Authorization
Software does not check whether an authenticated actor has permission for the requested operation.
Related attack patterns (CAPEC)
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-862
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A sandbox escape vulnerability in Cursor, a code editor with AI capabilities, allows a malicious agent to write to .git configuration files, including git hooks, leading to potential out-of-sandbox remote code execution.
The vulnerability arises from improperly protected .git configuration files, specifically git hooks, which can be written to by a malicious agent through prompt injection. These hooks are executed automatically by Git, leading to remote code execution without user interaction.
Questions
What is CVE-2026-26268?
A sandbox escape vulnerability in Cursor, a code editor with AI capabilities, allows a malicious agent to write to .git configuration files, including git hooks, leading to potential out-of-sandbox remote code execution.
What is the CVSS score for CVE-2026-26268?
CVE-2026-26268 has CVSS 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.5%.
Is CVE-2026-26268 actively exploited?
No confirmed active exploitation of CVE-2026-26268 as of 2026-09-25.
How do I remediate CVE-2026-26268?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2026-26268?
CVE-2026-26268 affects Anysphere Cursor.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Anysphere","product":"Cursor","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.