CVE-2025-54130: Cursor Agent is vulnerable prompt injection via Editor Special Files

Published Aug 5, 2025
·
Updated

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.

Affected Software

2 affected components
Cursor Cursor<1.3.9
anysphere Cursor<1.3.9

Event History

Aug 5, 2025
CVE Published
via MITRE·12:12 AM
Data Sourced
via MITRE·12:12 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
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-54130?

CVE-2025-54130 is classified as a moderate severity vulnerability due to the potential unauthorized file modifications.

2

How do I fix CVE-2025-54130?

To fix CVE-2025-54130, update Cursor to version 1.3.9 or later where the vulnerability is addressed.

3

What kind of files are affected by CVE-2025-54130?

CVE-2025-54130 affects all writable files in Cursor versions less than 1.3.9 and requires user approval only for dotfiles.

4

What can an attacker do with CVE-2025-54130?

An attacker could exploit CVE-2025-54130 to create or modify sensitive files without user consent.

5

Is my version of Cursor vulnerable to CVE-2025-54130?

If you are using a version of Cursor lower than 1.3.9, your software is vulnerable to CVE-2025-54130.

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