Skip to content

v4.4.5

Choose a tag to compare

@bvisible bvisible released this 02 Dec 09:07
· 9 commits to main since this release

A security release: upgrade if you use readonly mode. The built-in list of readonly mode only knew a command
after a blank, ;, & or |, so a command inside a subshell with no blank before it ran: (rm -rf /srv/data)
deleted the folder on a readonly server (GHSA-c577-5jq9-pqq3, medium, reported by @InertFluid). The same
was true of a brace group in zsh ({rm x}), of a quoted name after (, if, while, ! or a case pattern
(if "rm" x; then :; fi, in every shell), of a quoted name after a word that expands to nothing ($u "rm" x), and
of zsh's =rm x and glob qualifiers (ls *(e:rm:)). restricted mode refused all of these lines already. Every
release with readonly mode, from 3.5.0, is affected.

Fixed

  • readonly reads a command inside a group as a command. Each command is also read with every unquoted (, ), { and } read as a blank, and a quoted word is read as the command when it can be one: after (, {, !, if, then, while, until, do, a case pattern, zsh's noglob, and a word that can expand to nothing. zsh's =rm is read as rm wherever a command can stand, and a parenthesis right after a word (a zsh glob qualifier, which can run a command) is refused. Quoted text is untouched: grep -E "(error|kill)" /var/log/syslog, (cd /var/log && ls), f() { ls; } and diff <(ls a) <(ls b) still run. A seeded test puts a stand-in for a denied command in 1,500 such lines and runs them in sh, dash, bash and zsh: none that readonly allows runs it.

Changed

  • Desktop build tools: minimatch 11.0.10 (GHSA-cf2h-pxjq-68xw, GHSA-c859-jr93-m5j4, GHSA-hqmv-qgp3-jx75) and tar 7.5.24. The node-tar advisories of 2026-11-28 are fixed from tar 8.0.2, which no release of electron-builder accepts yet; tar and minimatch build the desktop app and are not shipped in it or in the npm package.

Install or update: npm install -g mcp-ssh-manager@4.4.5 (or npm update -g mcp-ssh-manager), or download the desktop application below; the 4.x application updates itself.