Arbitrary Command Injection Affecting ssh-mcp package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.08% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SSHMCP-16642287
  • published12 May 2026
  • disclosed26 Apr 2026
  • creditUnknown

Introduced: 26 Apr 2026

NewCVE-2026-7039  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

There is no fixed version for ssh-mcp.

Overview

ssh-mcp is a MCP server exposing SSH control for Linux and Windows systems via Model Context Protocol.

Affected versions of this package are vulnerable to Arbitrary Command Injection via the shell.write() function. An attacker can execute arbitrary system commands by supplying crafted input to the argument, potentially leading to full compromise of confidentiality, integrity, and availability of the system.

References

CVSS Base Scores

version 4.0
version 3.1