CVE-2025-61590
Full vulnerability record from the local CVENow database.
Description
Cursor is a code editor built for programming with AI. Versions 1.6 and below are vulnerable to Remote Code Execution (RCE) attacks through Visual Studio Code Workspaces. Workspaces allow users to open more than a single folder and save specific settings (pretty similar to .vscode/settings.json) for the folders / project. An untitled workspace is automatically created by VS Code (untitled.code-workspace), which contains all the folders and workspace settings from the user's current session, opening up an entire new attack vector if the user has a .code-workspace file in path (either untitled created automatically or a saved one). If an attacker is able to hijack the chat context of the victim (such as via a compromised MCP server), they can use prompt injection to make the Cursor Agent write into this file and modify the workspace. This leads to a bypass of CVE-2025-54130 which can lead to RCE by writing to the settings section. This issue is fixed in version 1.7.
View original CVE JSON
{
"id": "CVE-2025-61590",
"sourceIdentifier": "[email protected]",
"published": "2025-10-03T17:15:47.690",
"lastModified": "2026-10-19T17:10:00.173",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Cursor is a code editor built for programming with AI. Versions 1.6 and below are vulnerable to Remote Code Execution (RCE) attacks through Visual Studio Code Workspaces. Workspaces allow users to open more than a single folder and save specific settings (pretty similar to .vscode/settings.json) for the folders / project. An untitled workspace is automatically created by VS Code (untitled.code-workspace), which contains all the folders and workspace settings from the user's current session, opening up an entire new attack vector if the user has a .code-workspace file in path (either untitled created automatically or a saved one). If an attacker is able to hijack the chat context of the victim (such as via a compromised MCP server), they can use prompt injection to make the Cursor Agent write into this file and modify the workspace. This leads to a bypass of CVE-2025-54130 which can lead to RCE by writing to the settings section. This issue is fixed in version 1.7."
},
{
"lang": "es",
"value": "Cursor es un editor de código construido para programar con IA. Las versiones 1.6 e inferiores son vulnerables a ataques de ejecución remota de código (RCE) a través de los espacios de trabajo de Visual Studio Code. Los espacios de trabajo permiten a los usuarios abrir más de una sola carpeta y guardar configuraciones específicas (bastante similar a .vscode/settings.json) para las carpetas / el proyecto. VS Code crea automáticamente un espacio de trabajo sin título (untitled.code-workspace), que contiene todas las carpetas y configuraciones del espacio de trabajo de la sesión actual del usuario, abriendo un nuevo vector de ataque completo si el usuario tiene un archivo .code-workspace en la ruta (ya sea sin título creado automáticamente o uno guardado). Si un atacante es capaz de secuestrar el contexto del chat de la víctima (como a través de un servidor MCP comprometido), pueden usar la inyección de prompts para hacer que el Agente de Cursor escriba en este archivo y modifique el espacio de trabajo. Esto lleva a una omisión de CVE-2025-54130 lo que puede llevar a RCE escribiendo en la sección de configuraciones. Este problema está solucionado en la versión 1.7."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "cursor",
"product": "cursor",
"versions": [
{
"version": "< 1.7",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 1.6,
"impactScore": 5.9
},
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 1.6,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-10-03T18:27:41.672612Z",
"id": "CVE-2025-61590",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7",
"matchCriteriaId": "F1643496-D7AD-4729-A51E-B3E16C0A2E5C"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/cursor/cursor/security/advisories/GHSA-xg6w-rmh5-r77r",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
}
]
}