CVE-2026-31854: Cursor Affected by Arbitrary Code Execution via Prompt Injection and Whitelist Bypass

Published Mar 11, 2026
·
Updated

Cursor is a code editor built for programming with AI. Prior to 2.0 ,if a visited website contains maliciously crafted instructions, the model may attempt to follow them in order to “assist” the user. When combined with a bypass of the command whitelist mechanism, such indirect prompt injections could result in commands being executed automatically, without the user’s explicit intent, thereby posing a significant security risk. This vulnerability is fixed in 2.0.

Affected Software

2 affected components
Cursor Cursor<2.0
anysphere Cursor<2.0

Event History

Mar 11, 2026
CVE Published
via MITRE·05:11 PM
Data Sourced
via MITRE·05:11 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 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-2026-31854?

CVE-2026-31854 has been classified with a high severity rating due to its potential for arbitrary code execution.

2

How do I fix CVE-2026-31854?

To fix CVE-2026-31854, users should upgrade to Cursor version 2.0 or higher, which addresses the vulnerability.

3

What does CVE-2026-31854 affect?

CVE-2026-31854 affects Cursor code editor versions prior to 2.0, allowing for vulnerabilities related to prompt injection and whitelist bypass.

4

Can CVE-2026-31854 lead to data breaches?

Yes, CVE-2026-31854 can potentially lead to data breaches due to arbitrary code execution capabilities.

5

Who is responsible for the CVE-2026-31854 vulnerability?

The CVE-2026-31854 vulnerability is associated with the Cursor software developed by 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