Arbitrary code execution from Cursor Agent through a prompt injection via Editor Special Files
CVE-2025-54130 · GHSA-vqv7-vq92-x87f · published 2025-08-02
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- Not scored
- Fixed in
- 1.3.9
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
If chained with a separate prompt injection vulnerability, this could allow the writing of sensitive editor files on the host by the agent. This can then be used to indirectly execute code , e.g. by changing the user's default shell.
Upgrade cursor to 1.3.9 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.
The agent has been blocked from writing several editor-sensitive files without approval.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| cursor | App | <1.3 | 1.3.9 |
- 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
- HighSandbox escape via Git hookscursor
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.