{"id":"CVE-2025-54136","aliases":["EUVD-2025-23405"],"status":"published","title":"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.","severity":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.31501,"percentile":0.98297,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-78"],"published":"2025-08-01T23:08:21Z","modified":"2026-06-17T09:39:30Z","exploits":[{"source":"pocgithub","id":"GeeksikhSecurity/ai-tool-poisoning-guard","title":"GeeksikhSecurity/ai-tool-poisoning-guard","date":"2026-09-07","url":"https://github.com/GeeksikhSecurity/ai-tool-poisoning-guard"},{"source":"pocgithub","id":"PRE5T0/CVE-2025-54136","title":"PRE5T0/CVE-2025-54136","date":"2026-01-15","url":"https://github.com/PRE5T0/CVE-2025-54136"},{"source":"pocgithub","id":"Sushank05/mcp-doorman","title":"Sushank05/mcp-doorman","date":"2026-07-08","url":"https://github.com/Sushank05/mcp-doorman"}],"products":[{"vendor":"anysphere","product":"cursor"},{"vendor":"cursor","product":"cursor"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-24mc-g4xr-4395","tags":["x_refsource_CONFIRM","Vendor Advisory"]}],"sources":{"cve":[{"id":"CVE-2025-54136","title":"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.","status":"published","published":"2025-08-01T23:08:21.817Z","modified":"2025-08-04T17:16:42.841Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:32:27.603809Z"}],"euvd":[{"id":"EUVD-2025-23405","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.","status":"published","published":"2025-08-01T23:08:21Z","modified":"2025-08-04T17:16:42Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:32:01.599514Z"}],"nvd":[{"id":"CVE-2025-54136","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.","status":"published","published":"2025-08-02T00:15:25.29Z","modified":"2026-06-17T09:39:30.987Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:11:21.71471Z"}]}}
