RCE in Codefriar Sf-Mcp
CVE-2026-117561
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/codefriar/sf-mcp/issues/17 (issue-tracking)
- github.com/codefriar/sf-mcp (product)
- github.com/codefriar/sf-mcp/blob/beb103dced68962e0c069b62cb377286751d0103/src/u… (technical-description)
- www.vulncheck.com/advisories/sf-mcp-through-1.3.2-os-command-injection-via-sale… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-117561?
- CVE-2026-117561 is a high-severity vulnerability in Codefriar Sf-Mcp, classified under OS Command Injection. CVSS score: 7.8/10. Published 2026-10-27.
- How severe is CVE-2026-117561?
- High severity. CVSS v3 base score is 7.8 out of 10.