rewindex

RewindexCVEsCursor

CVE-2025-54135: Cursor Agent is vulnerable to prompt injection via MCP Special Files

High · CVSS 8.6 (CVSS 3.1)EPSS 2.1%, 81th percentilePublished Updated Assigner: GitHub_M

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.

Vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H · CWE-78, CWE-829

Tracked companies

Cursor

Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.

Status incidents that name it

No tracked status incident names this CVE.

Affected vendors and products

cursor: cursor

References

All CVEsMarkdownJSON