CVE-2025-54136 Cursor's Modification of MCP Server Definitions Bypasses Manual Re-approvals

High 7.2 Published Updated

Attackers can achieve remote code execution by silently modifying trusted MCP server configurations in shared repositories or locally, bypassing security re-approval prompts.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-54136?

CVE-2025-54136 is a high-severity code injection vulnerability in cursor, published on 1 Aug 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Cursor is a code editor built for programming with AI. In versions 1.2.4 and below, attackers can achieve remote and persistent code execution by modifying an already trusted MCP configuration file inside a shared GitHub repository or editing the file locally on the target's machine. Once a collaborator accepts a harmless MCP, the attacker can silently swap it for a malicious command (e.g., calc.exe) without triggering any warning or re-prompt. If an attacker has write permissions on a user's active branches of a source repository that contains existing MCP servers the user has previously approved, or allows an attacker has arbitrary file-write locally, the attacker can achieve arbitrary code execution. This is fixed in version 1.3.

Weakness: CWE-78

Which versions are affected by CVE-2025-54136?

It affects 1 product.

Products include Anysphere Cursor.

How do I fix CVE-2025-54136?

No fix has been published for CVE-2025-54136 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-54136 being exploited?

There is no known exploitation of CVE-2025-54136 in the wild and no public exploit code.

Public exploit code: 3 proofs of concept on GitHub.

Sources

Is CVE-2025-54136 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free