CVE-2025-54136
Cursor's Modification of MCP Server Definitions Bypasses Manual Re-approvals
Description
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.
In plain language
AI Worth attentionCVE-2025-54136 lets an attacker slip in a malicious MCP server definition without triggering Cursor’s usual re-approval, which can lead to code running on your machine; if you use Cursor with MCP servers in shared repositories you collaborate on, you should update to Cursor 1.3.
In Cursor (1.2.4 and below), attackers with repo write access (or arbitrary local file-write) can modify already-approved MCP server definitions in a way that bypasses manual re-approvals, leading to remote and persistent code execution.
What to do now
- Check your installed Cursor version; if it is 1.2.4 or below, you are affected.
- If you work from shared Git repositories that include previously approved MCP server definitions, identify whether any collaborators (or anyone with repo write access) could modify those files.
- Update Cursor to version 1.3 or later.
- After updating, review your MCP server approvals (especially in shared repos) and remove/disable any unexpected MCP entries.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:HPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.
View exploit detailsAttack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
1 techniqueReferences
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-54136 and every CVE in our database. Create a free account — no credit card required.
Create Free Account