home / blog

2026-11-10 · high

CVE-2025-54136: RCE in Cursor via MCP Configuration

Cursor versions up to 1.2.4 exposed to persistent RCE through MCP configuration file modification.

CVE-2025-54136: RCE in Cursor via MCP Configuration

CVE-2025-54136 affects Cursor, an AI-powered code editor, in versions 1.2.4 and earlier. The vulnerability enables persistent remote code execution by exploiting trusted MCP (Model Context Protocol) configuration files. An attacker with write access to a shared Git repository can silently replace a trusted MCP configuration with malicious commands without triggering user warnings or re-prompts.

Classified as HIGH with CVSS 7.2, the vulnerability was officially published August 2, 2025, by the National Vulnerability Database. A fix is available in Cursor version 1.3. Recent activity in public repositories shows development of integrity layers for MCP security, indicating community awareness and ongoing security improvements.

Upgrade immediately to version 1.3. In shared repository environments, audit write permissions and restrict access to MCP configuration files. Review existing MCP files for suspicious modifications. Audit all previously approved MCP integrations. If immediate upgrade is not possible, disable MCP integrations from untrusted repositories until the patch is deployed.

At a glance

What
Cursor (AI-powered code editor) allows persistent remote code execution by modifying trusted MCP (Model Context Protocol) configuration files in Git repositories or through local machine access
Severity
HIGH (CVSS 7.2). Impact: arbitrary command execution without user interaction once initial MCP approval is granted
Affected versions
Cursor versions 1.2.4 and earlier
Fix
Update to Cursor version 1.3 or later
Status
Published August 2, 2025, by National Vulnerability Database; official fix available from vendor
Action
Urgent mandatory update; audit repository write permissions; examine MCP files for suspicious modifications; disable integrations from untrusted repositories until patched

Sources: NVD, CVE-2025-54136

← All articles