{"id":"CVE-2025-54135","aliases":["EUVD-2025-23569"],"status":"published","title":"Cursor Agent is vulnerable to prompt injection via MCP Special Files","description":"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.","severity":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.0213,"percentile":0.82204,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-78","CWE-829"],"published":"2025-08-05T00:11:07Z","modified":"2026-06-17T09:39:30Z","exploits":[{"source":"pocgithub","id":"anntsmart/CVE-2025-54135","title":"anntsmart/CVE-2025-54135","date":"2025-08-04","url":"https://github.com/anntsmart/CVE-2025-54135"},{"source":"pocgithub","id":"hn1e13/test-mcp","title":"hn1e13/test-mcp","date":"2025-08-30","url":"https://github.com/hn1e13/test-mcp"}],"products":[{"vendor":"anysphere","product":"cursor"},{"vendor":"cursor","product":"cursor"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-4cxx-hrm3-49rm","tags":["x_refsource_CONFIRM","Mitigation","Vendor Advisory"]}],"sources":{"cve":[{"id":"CVE-2025-54135","title":"Cursor Agent is vulnerable to prompt injection via MCP Special Files","description":"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.","status":"published","published":"2025-08-05T00:11:07.363Z","modified":"2025-08-05T13:58:39.517Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-78","CWE-829"],"updated_at":"2026-11-02T14:32:27.603809Z"}],"euvd":[{"id":"EUVD-2025-23569","description":"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.","status":"published","published":"2025-08-05T00:11:07Z","modified":"2025-08-05T13:58:39Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:32:01.599514Z"}],"nvd":[{"id":"CVE-2025-54135","description":"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.","status":"published","published":"2025-08-05T01:15:41.41Z","modified":"2026-06-17T09:39:30.873Z","cvss":[{"version":"3.1","score":8.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-78","CWE-829"],"updated_at":"2026-11-02T14:11:22.319351Z"}]}}
