CVE-2025-54136: Cursor's Modification of MCP Server Definitions Bypasses Manual Re-approvals
Cursor is a code editor built for programming with AI. In versions 1.2.4 and below, attackers can achieve remote and persistent code execution by modifying an already trusted MCP configuration file inside a shared GitHub repository or editing the file locally on the target's machine. Once a collaborator accepts a harmless MCP, the attacker can silently swap it for a malicious command (e.g., calc.exe) without triggering any warning or re-prompt. If an attacker has write permissions on a user's active branches of a source repository that contains existing MCP servers the user has previously approved, or allows an attacker has arbitrary file-write locally, the attacker can achieve arbitrary code execution. This is fixed in version 1.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Cursorto a version that resolves this vulnerability.Fixed in 1.3 - Operational
If you are affected on versions 1.2.4 and below, review MCP server configuration files that were previously approved in shared GitHub repositories and on the local target machine for any swapped malicious MCP definitions; revert them to the originally approved contents.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-54136?
CVE-2025-54136 is considered a high severity vulnerability due to its potential for remote and persistent code execution.
How do I fix CVE-2025-54136?
To fix CVE-2025-54136, update Cursor to version 1.2.5 or later to mitigate the vulnerability.
Who is affected by CVE-2025-54136?
CVE-2025-54136 affects all users of Cursor versions 1.2.4 and below.
What type of attack does CVE-2025-54136 enable?
CVE-2025-54136 enables attackers to achieve remote and persistent code execution through manipulation of trusted MCP configuration files.
Can CVE-2025-54136 be exploited locally?
Yes, CVE-2025-54136 can be exploited both remotely via a shared repository or locally on the target's machine.