Cursor
Cursor Agent is vulnerable to prompt injection via MCP Special Files
Cursor is a code editor built for programming with AI. Cursor allows writing in-workspace files with no user approval in versions below 1.3.9, If the file is a dotfile, editing it requires approval but creating a new one doesn't. Hence, if sensitive MCP files, such as the .cursor/mcp.json file don't already exist in the workspace, an attacker can chain a indirect prompt injection vulnerability to hijack the context to write to the settings file and trigger RCE on the victim without user approval. This is fixed in version 1.3.9.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.3.9
Fixed in 1.3.9
Mitigation
Upgrade cursor to 1.3.9 or later.
References
- Vendor advisory github.com/cursor/cursor/security/advisories/G…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 pending · 1 informational · 1 not a PoC
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| allinsthon/CVE-2025-54135 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| anntsmart/CVE-2025-54135 | 4 Aug 2025 −14 h | 0 | Informational · write-up |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| hn1e13/test-mcp | 30 Aug 2025 +25 d | 0 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.