---
id: CVE-2026-117561
title: sf-mcp through 1.3.2 OS Command Injection via Salesforce CLI Flag Values
summary: >-
  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…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-78
vendor: codefriar
product: sf-mcp
affected:
  - sf-mcp <= 1.3.2
published: '2026-10-27'
updated: '2026-10-27'
sourceUpdated: '2026-10-27T13:07:56.281Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-117561'
references:
  - url: 'https://github.com/codefriar/sf-mcp/issues/17'
    label: 'GitHub Issue #17'
  - url: 'https://github.com/codefriar/sf-mcp'
  - url: >-
      https://github.com/codefriar/sf-mcp/blob/beb103dced68962e0c069b62cb377286751d0103/src/utils.ts#L79-L90
  - url: >-
      https://www.vulncheck.com/advisories/sf-mcp-through-1.3.2-os-command-injection-via-salesforce-cli-flag-values
    label: >-
      VulnCheck Advisory: sf-mcp through 1.3.2 OS Command Injection via
      Salesforce CLI Flag Values
tags:
  - cve.org
ingestedAt: '2026-10-27T16:11:59.339Z'
---

## Overview

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.

## Affected

- `sf-mcp <= 1.3.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
