Vulnerability · Published Oct 27, 2026 · Assigned by VulnCheck
CVE-2026-117561sf-mcp through 1.3.2 OS Command Injection via Salesforce CLI Flag Values
High 7.8
In plain English
A high-severity OS command injection in sf-mcp from codefriar. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 51% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
Official description
Codefriar sf-mcp through 1.3.2 contains an OS command injection vulnerability that allows attackers to execute shell commands by supplying crafted Salesforce CLI tool flag values. Because escapeValue() in src/utils.ts fails to neutralize backticks, $() substitution, and other shell metacharacters, these values reach execSync in executeSfCommand and run as the MCP server user.
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- GitHub Issue #17 issue-tracking
- https://github.com/codefriar/sf-mcp product
- https://github.com/codefriar/sf-mcp/blob/beb103dced68962e0c069b62cb377286751d0103/src/utils.ts#L79-L90 technical-description
- VulnCheck Advisory: sf-mcp through 1.3.2 OS Command Injection via Salesforce CLI Flag Values third-party-advisory