Skip to content

CVE-2025-54136 – MCPoison Persistent Code Execution via MCP ... #1243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

carlospolop
Copy link
Collaborator

🤖 Automated Content Update

This PR was automatically generated by the HackTricks News Bot based on a technical blog post.

📝 Source Information

🎯 Content Summary

Background


Cursor IDE is an AI-focused development environment integrating local code editing with LLM-driven automation via Model Context Protocol (MCP) configurations stored in .cursor/rules/mcp.json.


Each MCP entry under mcpServers defines a name, command, and optional args. Example:


{
  "mcpServers": {
    "test1": {
      "command": "echo",
      "args": ["Hello World"]
    }
...

🔧 Technical Details

An attacker exploits Cursor’s approval mechanism by committing a benign MCP configuration under .cursor/rules/mcp.json and obtaining the user’s one-time approval for the MCP name. Since Cursor binds trust solely to the configuration name and does not re-validate its command or args, the attacker can later modify these fields to arbitrary system commands or scripts (e.g., a reverse-shell batch file). On each project open or sync, Cursor silen...

🤖 Agent Actions

Updated HackTricks:

File updated: src/AI/AI-MCP-Servers.md
• Added detailed section “Persistent Code Execution via MCP Trust Bypass (Cursor IDE – ‘MCPoison’)” explaining CVE-2025-54136, PoC JSON snippets, exploitation steps, and mitigations.
• Created new “## References” section containing the Check Point Research blog URL.

This integrates the new vulnerability within the existing MCP security page, enhancing coverage of IDE-based supply-chain attacks without creating additional pages.

✅ Review Checklist

  • Content is technically accurate
  • Formatting follows HackTricks style guidelines
  • Links and references are working
  • Content adds educational value
  • No sensitive information is exposed

This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.

@carlospolop
Copy link
Collaborator Author

🔗 Additional Context

Original Blog Post: https://research.checkpoint.com/2025/cursor-vulnerability-mcpoison/

Content Categories: Based on the analysis, this content was categorized under "generic-hacking/IDE-exploitation".

Repository Maintenance:

  • MD Files Formatting: 865 files processed

Review Notes:

  • This content was automatically processed and may require human review for accuracy
  • Check that the placement within the repository structure is appropriate
  • Verify that all technical details are correct and up-to-date
  • All .md files have been checked for proper formatting (headers, includes, etc.)

Bot Version: HackTricks News Bot v1.0

@carlospolop
Copy link
Collaborator Author

merge

@carlospolop carlospolop merged commit 8638b68 into master Aug 10, 2025
@carlospolop carlospolop deleted the update_CVE-2025-54136___MCPoison__Persistent_Code_Executi_20250806_012958 branch August 10, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant