Godot MCP is vulnerable to Command Injection via unsanitized projectPath
Description
Godot MCP is a Model Context Protocol (MCP) server for interacting with the Godot game engine. Prior to version 0.1.1, a command injection vulnerability in godot-mcp allows remote code execution. The executeOperation function passed user-controlled input (e.g., projectPath) directly to exec(), which spawns a shell. An attacker could inject shell metacharacters like $(command) or &calc to execute arbitrary commands with the privileges of the MCP server process. This affects any tool that accepts projectPath, including create_scene, add_node, load_sprite, and others. This issue has been patched in version 0.1.1.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@coding-solo/godot-mcpnpm | < 0.1.1 | 0.1.1 |
Affected products
2- Range: < 0.1.1
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-8jx2-rhfh-q928ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-25546ghsaADVISORY
- github.com/Coding-Solo/godot-mcp/commit/21c785d923cfdb471ea60323c13807d62dfecc5aghsax_refsource_MISCWEB
- github.com/Coding-Solo/godot-mcp/issues/64ghsax_refsource_MISCWEB
- github.com/Coding-Solo/godot-mcp/pull/67ghsax_refsource_MISCWEB
- github.com/Coding-Solo/godot-mcp/security/advisories/GHSA-8jx2-rhfh-q928ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.