Read the docs

OS command injection in sf-mcp via Salesforce CLI flag values

Priority HIGH 72CWE-78Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00652 51st percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

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

VendorProductAffected versionsFixed inStatusSource
codefriarsf-mcpup to 1.3.2—No fix listedCNA
  • sf-mcp Vendorcodefriar Affected up to 1.3.2 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for sf-mcp.

Written with Claude Haiku 5.5 from the sources below · 2026-11-05

Timeline

  1. 2026-10-27 Threatist record created from CVE-2026-117561
  2. 2026-10-27 Alias added: GHSA-rjw8-q97p-7xhf
  3. 2026-10-28 Priority changed: MEDIUM → LOW
  4. 2026-11-05 CISA SSVC decision points changed
  5. 2026-11-05 Priority changed: LOW → HIGH

References

Sources