Cursor IDE Flaw Enables Persistent Code Execution via MCP Trust Bypass
Patch & Detection Intelligence · 2 sources · Updated 3mo 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.


