Skip to content
HighVulnerability

CVE-2025-54136: Cursor code execution by modifying a trusted MCP configuration file

Identifier
CVE-2025-54136
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
30.9%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Cursor, an AI-assisted code editor, is affected in versions 1.2.4 and below. An attacker who edits an already trusted MCP configuration file, either in a shared GitHub repository or locally on the target's machine, can swap an approved MCP server for a malicious command without any warning or re-prompt, achieving remote and persistent code execution. The attack requires write access to an active branch of a repository containing approved MCP servers, or arbitrary local file-write access.

Mitigation

This is fixed in version 1.3.