7.8High

CVE-2026-117561sf-mcp through 1.3.2 OS Command Injection via Salesforce CLI Flag Values

codefriar sf-mcp Published: (23 days ago)

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.

Weakness (CWE): CWE-78

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
codefriar sf-mcp ≤ 1.3.2

References and patches