sf-mcp through 1.3.2 OS Command Injection via Salesforce CLI Flag Values
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.
- Products
- sf-mcp
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-117561
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 13:58 UTC · Revision 1
Source evidence
sf-mcp through 1.3.2 OS Command Injection via Salesforce CLI Flag Values
core-cve · Original sourcePublished 27 Oct 2026, 13:07 UTC
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.
cve:CVE-2026-117561
sf-mcp
Fixed versions: Not specified
Complete source record
{
"id": "a1c005fa25b4013588a006046dc4553628d00b709695f59c01eb3cdb5721b156",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-117561",
"method": "structured",
"payload": {
"kind": "advisory",
"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 backticks, $() substitution, and other shell metacharacters, these values reach execSync in executeSfCommand and run as the MCP server user.",
"evidence": "cve:CVE-2026-117561",
"products": [
{
"name": {
"value": "sf-mcp",
"evidence": "/containers/cna/affected/0/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-117561",
"aliases": [
"CVE-2026-117561"
],
"metrics": [
{
"format": "CVSS",
"cvssV4_0": {
"version": "4.0",
"baseScore": 8.5,
"attackVector": "LOCAL",
"baseSeverity": "HIGH",
"vectorString": "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",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"privilegesRequired": "LOW",
"subIntegrityImpact": "NONE",
"vulnIntegrityImpact": "HIGH",
"subAvailabilityImpact": "NONE",
"vulnAvailabilityImpact": "HIGH",
"subConfidentialityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH"
}
},
{
"format": "CVSS",
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.8,
"attackVector": "LOCAL",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "LOW",
"confidentialityImpact": "HIGH"
}
}
],
"affected": [
{
"vendor": "codefriar",
"product": "sf-mcp",
"versions": [
{
"status": "affected",
"version": "0",
"versionType": "semver",
"lessThanOrEqual": "1.3.2"
}
],
"packageURL": "pkg:npm/sf-mcp",
"defaultStatus": "unaffected"
}
],
"modified": "2026-10-27T13:07:56.281Z",
"provider": "cve",
"references": [
"https://github.com/codefriar/sf-mcp/issues/17",
"https://github.com/codefriar/sf-mcp",
"https://github.com/codefriar/sf-mcp/blob/beb103dced68962e0c069b62cb377286751d0103/src/utils.ts#L79-L90",
"https://www.vulncheck.com/advisories/sf-mcp-through-1.3.2-os-command-injection-via-salesforce-cli-flag-values"
],
"provider_metadata": {
"cna": {
"orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"shortName": "VulnCheck",
"dateUpdated": "2026-10-27T13:07:56.281Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-117561",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": "/containers/cna/metrics"
},
"source_id": "core-cve",
"document_id": 392687,
"published_at": "2026-10-27T13:07:56.281+00:00"
}