{"id":"CVE-2025-54130","aliases":["CVE-2025-54130"],"related":[],"kind":"vulnerability","state":"published","title":"Cursor Agent is vulnerable prompt injection via Editor Special Files","summary":"Cursor is a code editor built for programming with AI. Cursor allows writing in-workspace files with no user approval in versions less than 1.3.9. If the file is a dotfile, editing it requires approval but creating a new one doesn't. Hence, if sensitive editor files, such as the .vscode/settings.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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cursor is a code editor built for programming with AI. Cursor allows writing in-workspace files with no user approval in versions less than 1.3.9. If the file is a dotfile, editing it requires approval but creating a new one doesn't. Hence, if sensitive editor files, such as the .vscode/settings.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.","source":"cvelist"},{"lang":"es","text":"Cursor es un editor de código diseñado para programar con IA. Permite escribir archivos en el espacio de trabajo sin la aprobación del usuario en versiones anteriores a la 1.3.9. Si el archivo es un archivo de puntos, editarlo requiere aprobación, pero crear uno nuevo no. Por lo tanto, si no existen archivos sensibles del editor, como el archivo .vscode/settings.json, en el espacio de trabajo, un atacante puede encadenar una vulnerabilidad de inyección indirecta de mensajes para secuestrar el contexto y escribir en el archivo de configuración, lo que activa una RCE en la víctima sin la aprobación del usuario. Esto se corrigió en la versión 1.3.9.","source":"nvd"}],"published":"2025-08-05T00:12:28.632Z","modified":"2026-06-17T09:39:30.283Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"version":"< 1.3.9","status":"affected"}],"vendor":"cursor","product":"cursor","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.3.9"}],"vendor":"anysphere","product":"cursor","cpe":"cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-vqv7-vq92-x87f","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-08-05T13:57:48.252Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54130","url":"https://www.cve.org/CVERecord?id=CVE-2025-54130","licence":"CVE Terms of Use","modified":"2025-08-05T13:57:58.596Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54130","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54130","licence":"Public domain","modified":"2026-06-17T09:39:30.283Z"}],"updatedAt":"2026-11-25T22:59:02.040Z","epss":{"score":0.00372,"percentile":0.33181,"date":"2026-12-01T12:00:22.000Z"}}