High, CVSS 8.7npmAmendedPublished
SSH/SCP option injection allowing local RCE in @aiondadotcom/mcp-ssh
GHSA-p4h8-56qp-hpgv
- Affected
- npm @aiondadotcom/mcp-ssh < 1.3.5
- Fixed in
- 1.3.5· Vendor fix available
- Issue
- Impact A crafted hostAlias argument such as -oProxyCommand=... was passed to ssh/scp without an argument terminator. SSH interprets arguments starting with - as options regardless of position, so the option-injection caused SSH to execute the attacker-supplied ProxyCommand locally on the machine running the MCP server — before any network connection. This bypassed the documented protection of @password: annotations and exposed local SSH keys, browser cookies, other MCP server credentials, and anything else readable by the server process. A second local-RCE vector existed on Windows: spawn(..., { shell: true }) was used so that ssh.exe/scp.exe could be found via PATH. With shell: true, every argument is re-parsed by cmd.exe, so shell metacharacters (&, |, ^, , ", ;, …) in hostAlias, command, localPath or remotePath would have been interpreted by cmd.exe and could have triggered arbitrary local command execution on Windows. The MCP server runs locally over STDIO, but the LLM driving…
Recommended action: Upgrade to 1.3.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.