Cursor IDE Flaw Enables Persistent Code Execution via MCP Trust Bypass
Patch & Detection Intelligence · 2 sources · Updated 4mo ago · First seen Aug 12, 2025

Cursor released security updates for a high-severity vulnerability, tracked as CVE-2025-54136 and dubbed MCPoison, that affects versions earlier than 1.3. The flaw stems from how the AI code editor handles configuration changes for MCP (Model Context Protocol) servers, allowing a trust bypass that can lead to remote code execution and, in some cases, full system compromise.
Researchers reported that the issue can be triggered through tampered MCP configuration files on a victim machine or through modified files embedded in GitHub repositories opened by developers, creating a path to persistent code execution inside the development environment. Defenders were urged to upgrade Cursor to version 1.3 immediately and limit the IDE to connections with only trusted MCP servers.
Why it matters
Impact assessment
Cursor users running versions earlier than 1.3 are affected, with the highest risk concentrated in software development teams that open third-party GitHub repositories or use MCP-enabled workflows. The impact is severe because exploitation can yield persistent code execution inside the IDE and potentially full system compromise, creating risk of source code theft, credential exposure, downstream supply-chain compromise, and developer workstation takeover.
The exposure is potentially broad across organizations adopting Cursor, but exploitation is opportunistic where attackers can influence local MCP configuration files or repository content opened by developers. The story describes a high-severity vulnerability with clear exploitation paths, but it does not provide confirmed in-the-wild exploitation incidents.
Supporting facts
- Product affected: Cursor AI code editor.
- Affected versions: all versions earlier than 1.3.
- Vulnerability: CVE-2025-54136, alias MCPoison.
- Severity: CVSS 3.1 score 7.2.
- Impact: remote code execution and possible full system compromise.
- Likely affected populations: developers, engineering workstations, CI-adjacent developer environments, and organizations consuming untrusted repositories or MCP servers.
- Business risks: intellectual property loss, credential theft from developer endpoints, malicious code insertion into repositories, and reputational damage from software supply-chain abuse.


