CVE-2025-61591: Cursor CLI's Cursor Agent MCP OAuth2 Communication is Vulnerable to Remote Code Execution

Published Oct 3, 2025
·
Updated

Cursor is a code editor built for programming with AI. In versions 1.7 and below, when MCP uses OAuth authentication with an untrusted MCP server, an attacker can impersonate a malicious MCP server and return crafted, maliciously injected commands during the interaction process, leading to command injection and potential remote code execution. If chained with an untrusted MCP service via OAuth, this command injection vulnerability could allow arbitrary code execution on the host by the agent. This can then be used to directly compromise the system by executing malicious commands with full user privileges. This issue does not currently have a fixed release version, but there is a patch, 2025.09.17-25b418f.

Affected Software

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

Event History

Oct 3, 2025
CVE Published
via MITRE·04:44 PM
Data Sourced
via MITRE·04:44 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-61591?

CVE-2025-61591 has a high severity rating due to the potential for an attacker to impersonate a malicious server.

2

How do I fix CVE-2025-61591?

To fix CVE-2025-61591, upgrade to Cursor versions beyond 1.7 where this vulnerability is addressed.

3

What are the risks associated with CVE-2025-61591?

The risks include unauthorized command execution and data exposure due to interaction with a malicious MCP server.

4

Which versions are affected by CVE-2025-61591?

Cursor versions 1.7 and below are affected by CVE-2025-61591.

5

Who is impacted by CVE-2025-61591?

Users of Cursor who rely on OAuth authentication with untrusted MCP servers are impacted by CVE-2025-61591.

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