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 doesnt. Hence, if sensitive MCP files, such as the .cursor/mcp.json file dont 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.

Risk Information

Base Score
9.8
MODERATE
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score
Exploitation Probability
0.073

Associated Vulnerability

VulnerabilityOS Platform
Vulnerabilities CVE-2025-54135 are affected in Cursor (x64) 1.2.1Windows
Vulnerabilities CVE-2025-54130,CVE-2025-54135 are affected in Cursor (x64) 1.3.8Windows
Vulnerabilities CVE-2025-54130,CVE-2025-54135 are affected in Cursor (User Based) 1.3.8Windows

Patch Details

Click to see the patches provided by ManageEngine for this CVE
Patch IDPatch Description
PATCH-350449Cursor (x64) (1.4.2)
PATCH-352933Cursor (x64) (2.0.34)

References

https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234