← All advisories
Advisory VV-009high2025-08

CVE-2025-54135 (“CurXecute”): Cursor agent could create MCP config and run code

Before 1.3.9, Cursor let the agent create new dotfiles like .cursor/mcp.json without approval. Chained with prompt injection, this meant remote code execution.

01.

What it is

CVE record: Cursor allowed writing in-workspace files with no approval below 1.3.9; editing a dotfile needed approval but creating one did not. An attacker could chain indirect prompt injection to write .cursor/mcp.json and trigger RCE. Fixed in 1.3.9.

A sibling advisory (GHSA-vqv7-vq92-x87f) covers the same trick via .vscode/settings.json.

02.

How to check

  1. Cursor → About: confirm version 1.3.9 or later.
03.

How to fix

  1. Update Cursor. Review any unexpected .cursor/mcp.json or .vscode/settings.json in your repos.
# Look for MCP / editor config files you didn't create
git log --diff-filter=A --name-only -- .cursor/mcp.json .vscode/settings.json
04.

Sources

The weekly email

One email a week. Only what changed.

New advisories, CVEs and fixes for Lovable, Bolt, v0, Replit, Base44 and Cursor apps. No roundups of things you already read.