Advisories for Npm/Mcp-Ssh-Manager package

2026

mcp-ssh-manager: Remote code execution (RCE) via command injection in the backup subsystem

src/backup-manager.js builds shell command strings for the ssh_backup_* tools by concatenating caller-controlled tool arguments (database, dbUser, dbPassword, dbHost, backupDir, paths, exclude, …) directly into the string with no shell escaping. The resulting string is passed to ssh.execCommand(), which runs it through the remote server's login shell. An argument that contains shell metacharacters (;, $(…), backticks, |) therefore executes arbitrary commands on the target server. This is a remote code execution …

mcp-ssh-manager: Command injection in database helpers (ssh_db_list / ssh_db_dump / ssh_db_import)

Every ssh_db_* tool argument — database, table, collection, output/input file paths, and the user / host / port / password connection fields — arrives from tool-call parameters and was interpolated directly into a shell-evaluated command string in src/database-manager.js. A caller able to invoke a database tool with a crafted value ($(…), backticks, ; cmd, | cmd, && cmd, bare > file) achieves arbitrary command execution on the configured SSH target, …