CVE-2025-54135: Cursor Agent is vulnerable to prompt injection via MCP 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 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.

Affected Software

2 affected components
Cursor Cursor<1.3.9
anysphere Cursor<1.3.9

Event History

Aug 1, 2025
News Published
via BleepingComputer·01:00 PM
News Published
via BleepingComputer·02:29 PM
Aug 5, 2025
CVE Published
via MITRE·12:11 AM
Data Sourced
via MITRE·12:11 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-54135?

CVE-2025-54135 has a high severity due to its ability to allow unauthorized file creation without user consent.

2

How do I fix CVE-2025-54135?

To fix CVE-2025-54135, update Cursor to version 1.3.9 or later.

3

What impact does CVE-2025-54135 have on my data?

CVE-2025-54135 can lead to the creation of sensitive files without user awareness, potentially compromising data security.

4

Who is affected by CVE-2025-54135?

Users of Cursor versions below 1.3.9 are affected by CVE-2025-54135.

5

Can I mitigate CVE-2025-54135 without updating?

Mitigation options are limited, and the best practice is to promptly update to the latest version of Cursor.

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