CVE-2026-117561

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

Published Oct 27, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw in Codefriar sf‑mcp enables an attacker to inject and run arbitrary shell commands by supplying specially crafted Salesforce CLI flag values. The escape routine in src/utils.ts does not neutralize backticks, $() substitutions, or other shell metacharacters, allowing the malicious string to reach execSync in executeSfCommand and execute with the MCP server’s user privileges. This network‑level vulnerability satisfies CWE‑78 and can lead to full control of the machine if the MCP server user is privileged.

Affected Systems

Products affected are Codefriar sf‑mcp versions 1.3.2 and earlier. Any instance that relies on the Salesforce CLI and uses the vulnerable flag parsing is at risk. Other Codefriar components or unrelated applications are not impacted.

Risk and Exploitability

The CVSS score of 8.5 marks the vulnerability as High severity. EPSS data is not available, and it is not listed in the CISA KEV catalog, suggesting limited wild exploitation to date. The likely attack vector is remote; an attacker only needs to control the flag values sent to the server, no additional authentication beyond normal CLI access. Given the ease of exploitation and potential for immediate remote code execution, the risk remains significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade sf‑mcp to the latest patched release whenever it becomes available.
  • If an upgrade cannot be performed immediately, sanitize or strip shell metacharacters from flag values before passing them to execSync, or disable the flag parsing logic that passes user input directly to the shell.
  • Limit the privileges of the MCP server user to the minimum required, and monitor for abnormal shell executions or logs that might indicate exploitation.

Generated by OpenCVE AI on October 27, 2026 at 14:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Codefriar
Codefriar sf-mcp
Vendors & Products Codefriar
Codefriar sf-mcp
Type Values Removed Values Added
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.
Title sf-mcp through 1.3.2 OS Command Injection via Salesforce CLI Flag Values
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 5:27 PM
Reserved
Oct 27, 2026, 11:25 AM
Status
Deferred
Published
Oct 27, 2026, 2:16 PM
Modified
Nov 5, 2026, 6:17 PM