High, CVSS 7.8npmAmendedPublished
godot-mcp has Command Injection via unsanitized projectPath
CVE-2026-25546 · GHSA-8jx2-rhfh-q928
- Affected
- npm @coding-solo/godot-mcp < 0.1.1
- Fixed in
- 0.1.1· Vendor fix available
- Issue
- Impact 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 createscene, addnode, loadsprite, and others. Patches Fixed in version 0.1.1 by switching from exec() to execFile(), which does not invoke a shell. Workarounds None. Users should upgrade immediately. Resources - https://github.com/Coding-Solo/godot-mcp/issues/64 - https://github.com/Coding-Solo/godot-mcp/pull/67
Recommended action: Upgrade to 0.1.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.