{"id":"CVE-2025-54136","published":"2025-08-01T23:08:21Z","modified":"2025-08-04T17:16:42Z","title":"Cursor's Modification of MCP Server Definitions Bypasses Manual Re-approvals","vendor":"cursor","product":"cursor","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.31501,"percentile":0.98324,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-24mc-g4xr-4395","tags":["x_refsource_CONFIRM"]}],"priority":{"score":29.7,"factors":[{"name":"EPSS percentile","points":19.66},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.04}]},"exploitSources":{"pocGithub":{"count":4,"skipped":0,"earliest":"2026-01-15","earliestUrl":"https://github.com/PRE5T0/CVE-2025-54136","repos":[{"name":"PRE5T0/CVE-2025-54136","url":"https://github.com/PRE5T0/CVE-2025-54136","stars":0,"created":"2026-01-15"},{"name":"Sushank05/mcp-doorman","url":"https://github.com/Sushank05/mcp-doorman","stars":0,"created":"2026-07-08"},{"name":"GeeksikhSecurity/ai-tool-poisoning-guard","url":"https://github.com/GeeksikhSecurity/ai-tool-poisoning-guard","stars":0,"created":"2026-09-07"},{"name":"glebgorelikov-droid/agentgate","url":"https://github.com/glebgorelikov-droid/agentgate","stars":0,"created":"2026-11-10"}]},"first":{"date":"2026-01-15","source":"PoC-in-GitHub","url":"https://github.com/PRE5T0/CVE-2025-54136"},"provenance":"source"},"vendorSlug":"cursor","affectedVersions":[{"vendor":"cursor","product":"cursor","versions":["< 1.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-08-04T17:16:34.453679Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"Cursor, an AI-assisted code editor, has a flaw in how it handles MCP server configuration files, which can be modified after a user has already approved them without triggering a re-approval prompt. An attacker who can write to such a file, either through write access to a shared GitHub repository branch containing previously approved MCP servers or through arbitrary local file-write access, can silently replace a trusted command with a malicious one and achieve arbitrary code execution, with the attacker needing prior write permissions and the flaw affecting versions 1.2.4 and below.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:02:42Z"},"euvd":{"id":"EUVD-2025-23405","exploited":false,"provenance":"source"}}