Sandbox escape via Git hooks
CVE-2026-26268 · GHSA-8pcm-8jpx-hv8r · published 2026-02-13 · updated 2026-03-16
- Severity
- High
- CVSS score
- 8.0
- Chance of exploitation (EPSS)
- Not scored
- Fixed in
- 2.5
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
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.
Upgrade cursor to 2.5 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Fixed in version 2.5
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| cursor | App | <2.5 | 2.5 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- CriticalCursor Desktop sandbox escape via agent-controlled working directorycursor
- CriticalCursor Desktop sandbox escape via symlink and failed path canonicalizationcursor
- HighSandbox escape via tampered Python virtual environmentscursor
- HighSandbox escape via launching privileged containerscursor
- HighCursor Desktop sandbox escape via Claude hook configurationcursor
- HighTerminal Tool Allowlist Bypass via Environment Variablescursor
The impact, patch and workaround text comes from the advisory, shortened (published by Cursor). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.