CVE-2025-54135
Description
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-08-05
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
1.7 %
higher than 75 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Anysphere | Cursor | < 1.3.9 | Affected |
Weakness type
-
CWE-78: Improper Neutralization of Special Elements used in an OS Command
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS …
-
CWE-829: Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1055: Process Injection
- T1176: Software Extensions
- T1195.001: Compromise Software Dependencies and Development Tools
- T1505.004: IIS Components
- T1505.005: Terminal Services DLL
- T1574.006: Dynamic Linker Hijacking
- T1574.013: KernelCallbackTable
- T1620: Reflective Code Loading
References
Related at Berigo
Articles
-
Cursor can execute a malicious file from a repository
Same product
2026-07-14
Mindgard has shown that Cursor on Windows can execute a malicious git.exe placed in a repository root without prompting the user.
-
AI-assisted malware development used to evade EDR detection
Same product
2026-06-02
Sophos describes how a threat actor used AI tools to build and test malware and detection evasion techniques, with human operators still directing th…
-
CursorJack: deep links abused to trigger unwanted actions in Cursor
Same product
2026-03-17
Proofpoint describes CursorJack, a technique abusing deep links and custom URI handlers in the Cursor IDE to trigger actions the user never intended.
-
AI coding tools recommend extensions that can be spoofed
Same product
2026-01-05
Koi found that Windsurf, Cursor and Google Antigravity recommend VSCode extensions missing from OpenVSX, leaving the names open to hijacking.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.