← Back to What AI broke

AI product flaw · high · 4 August 2025

Prompt injection in Cursor could rewrite its MCP config and run commands (CurXecute)

Content fed to the agent from an MCP source could make it write .cursor/mcp.json, which ran attacker commands before the user approved the edit.

AI system
Cursor
Affected
Cursor users before 1.3.9
CVE
CVE-2025-54135
Status
patched
Evidence
Primary (vendor advisory, filing or court record)

Why it qualifies

The attack works through prompt injection against the AI coding agent.

Sources