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.
Published: 2026-10-27
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: OS Command Injection
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Tue, 27 Oct 2026 13:45:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-27T13:07:56.281Z

Reserved: 2026-10-27T11:25:22.921Z

Link: CVE-2026-117561

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-27T14:16:38.270

Modified: 2026-10-27T14:16:38.270

Link: CVE-2026-117561

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T15:00:05Z

Weaknesses
  • CWE-78

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