OS command injection in sf-mcp via Salesforce CLI flag values
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
Codefriar sf-mcp through 1.3.2 contains an OS command injection flaw (CWE-78). The escapeValue() function fails to neutralize backticks, $() substitution and other shell metacharacters in Salesforce CLI flag values, so attacker-supplied values run as shell commands. An attacker who can supply crafted flag values can run commands as the MCP server user, with local access and low privileges required.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for sf-mcp.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
Timeline
- 2026-10-27 Threatist record created from CVE-2026-117561
- 2026-10-27 Alias added: GHSA-rjw8-q97p-7xhf
- 2026-10-28 Priority changed: MEDIUM → LOW
- 2026-11-05 CISA SSVC decision points changed
- 2026-11-05 Priority changed: LOW → HIGH
References
Sources
- CVE-2026-117561 · CVE Program
- CVE-2026-117561 · NVD
- FIRST EPSS
- GHSA-rjw8-q97p-7xhf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences