{"id":"CVE-2025-54135","published":"2025-08-05T00:11:07Z","modified":"2025-08-05T13:58:39Z","title":"Cursor Agent is vulnerable to prompt injection via MCP Special Files","vendor":"cursor","product":"cursor","tier":"tail","description":{"text":"Cursor is a code editor built for programming with AI. Cursor allows writing in-workspace files with no user approval in versions below 1.3.9, If the file is a dotfile, editing it requires approval but creating a new one doesn't. Hence, if sensitive MCP files, such as the .cursor/mcp.json file don't already exist in the workspace, an attacker can chain a indirect prompt injection vulnerability to hijack the context to write to the settings file and trigger RCE on the victim without user approval. This is fixed in version 1.3.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00838,"percentile":0.55098,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-4cxx-hrm3-49rm","tags":["x_refsource_CONFIRM"]}],"priority":{"score":22.0,"factors":[{"name":"EPSS percentile","points":11.02},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2025-08-30","earliestUrl":"https://github.com/hn1e13/test-mcp","repos":[{"name":"hn1e13/test-mcp","url":"https://github.com/hn1e13/test-mcp","stars":0,"created":"2025-08-30"}]},"first":{"date":"2025-08-30","source":"PoC-in-GitHub","url":"https://github.com/hn1e13/test-mcp"},"provenance":"source"},"vendorSlug":"cursor","affectedVersions":[{"vendor":"cursor","product":"cursor","versions":["< 1.3.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-08-05T13:58:32.369007Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-23569","exploited":false,"provenance":"source"}}