CVE-2025-54131: Cursor bypasses its allow list to execute arbitrary commands

Published Aug 1, 2025
·
Updated

Cursor is a code editor built for programming with AI. In versions below 1.3, an attacker can bypass the allow list in auto-run mode with a backtick () or $(cmd). If a user has swapped Cursor from its default settings (requiring approval for every terminal call) to an allowlist, an attacker can execute arbitrary command execution outside of the allowlist without user approval. An attacker can trigger this vulnerability if chained with indirect prompt injection. This is fixed in version 1.3.

Affected Software

2 affected components
Cursor Cursor<1.3
anysphere Cursor<1.3

Event History

Aug 1, 2025
CVE Published
via MITRE·11:05 PM
Data Sourced
via MITRE·11:05 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11: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-54131?

The severity of CVE-2025-54131 is classified as high due to the potential for attackers to execute commands without approval.

2

How do I fix CVE-2025-54131?

To fix CVE-2025-54131, update Cursor to version 1.3 or higher to ensure proper security measures are in place.

3

What techniques can an attacker use to exploit CVE-2025-54131?

An attacker can exploit CVE-2025-54131 by bypassing the allow list in auto-run mode using a backtick (`) or $(cmd) command.

4

Who is affected by CVE-2025-54131?

Users of Cursor versions below 1.3 who have swapped from default settings to an allowlist are affected by CVE-2025-54131.

5

What is the nature of the vulnerability in CVE-2025-54131?

CVE-2025-54131 is a vulnerability that allows unauthorized command execution due to improper validation of terminal commands in auto-run mode.

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