CVE-2025-61590: Cursor is vulnerable to RCE via .code-workspace files using Prompt Injection

Published Oct 3, 2025
·
Updated

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.

Affected Software

2 affected components
Cursor Cursor<=1.6
anysphere Cursor<1.7

Event History

Oct 3, 2025
CVE Published
via MITRE·04:27 PM
Data Sourced
via MITRE·04:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-61590?

CVE-2025-61590 has a high severity rating due to its potential for Remote Code Execution (RCE) attacks.

2

How do I fix CVE-2025-61590?

To fix CVE-2025-61590, upgrade Cursor to version 1.7 or later.

3

What software versions are affected by CVE-2025-61590?

Cursor versions 1.6 and below are affected by CVE-2025-61590.

4

What type of attack is associated with CVE-2025-61590?

CVE-2025-61590 is associated with Remote Code Execution (RCE) attacks.

5

Can CVE-2025-61590 affect my projects in Visual Studio Code?

Yes, CVE-2025-61590 can affect projects opened in Visual Studio Code Workspaces.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203