CVE-2025-61591
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-10-03

Last updated on: 2025-10-17

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-10-03
Last Modified
2025-10-17
Generated
2026-05-07
AI Q&A
2025-10-03
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
anysphere cursor to 1.7 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Cursor, a code editor that uses AI. In versions 1.7 and below, when the MCP component uses OAuth authentication with an untrusted MCP server, an attacker can impersonate a malicious MCP server and send specially crafted commands. These malicious commands can be injected during the interaction process, leading to command injection and potentially remote code execution on the host system.


How can this vulnerability impact me? :

If exploited, this vulnerability can allow an attacker to execute arbitrary code on your system with the same privileges as the user running the Cursor agent. This means the attacker could fully compromise your system by running malicious commands, potentially leading to data loss, system damage, or unauthorized access.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, avoid using OAuth authentication with untrusted MCP servers. Apply the available patch 2025.09.17-25b418f as soon as possible once it is available. Additionally, restrict the use of MCP services to trusted servers only to prevent malicious command injection.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart