Description
sf-mcp-server is an implementation of Salesforce MCP server for Claude for Desktop. A command injection vulnerability exists in sf-mcp-server due to unsafe use of child_process.exec when constructing Salesforce CLI commands with user-controlled input. Successful exploitation allows attackers to execute arbitrary shell commands with the privileges of the MCP server process.
Problem types
CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
References
github.com/...server/security/advisories/GHSA-h4w9-g9c5-vfwq
github.com/...server/security/advisories/GHSA-h4w9-g9c5-vfwq
github.com/...ommit/99fba0171b8c22b5ee3c0405053ccfd2910a066d