Skip to content

v4.3.6

Choose a tag to compare

@bvisible bvisible released this 25 Nov 16:21
· 12 commits to main since this release

A security release: upgrade if an agent runs in a project folder you did not write.
The .env of the folder an MCP client was started in could define a server whose
PROXYCOMMAND runs a command on your machine when a tool connects to it
(GHSA-wxcj-q5hp-wjrw,
high). Every release from 3.3.0, where PROXYCOMMAND was added, is affected.
One thing behaves differently on purpose: that .env is no longer read unless you
placed it or set SSH_MANAGER_TRUST_PROJECT_ENV=1 (details below). Servers in
~/.ssh-manager/.env, in a file named by SSH_ENV_PATH or SSH_MANAGER_ENV, in the
vault or in the process environment are not affected. Nothing else changes (the release
pipeline upgrades 3.8.5, 3.8.6, 3.8.7, every 4.0.x, 4.1.0, 4.2.0, 4.3.0, 4.3.1, 4.3.2, 4.3.3,
4.3.4 and 4.3.5 from the registry to this version and back).

The Windows installer is still not Authenticode-signed, for the same reason
as 4.0.0: Windows shows "Windows protected your PC", More info → Run anyway,
and ssh-manager app checks the installer against the SHA-256 in
release-manifest-win32.json. macOS builds are signed and notarized.

Security

  • A project's .env could run a command on this machine
    (GHSA-wxcj-q5hp-wjrw,
    reported by Pythame). The engine read the .env of its working directory, which is
    whatever project the MCP client was started in, when ~/.ssh-manager/.env did not
    exist. That file can define a server with SSH_SERVER_<NAME>_PROXYCOMMAND, or point
    SSH_CONFIG_PATH at a TOML with a proxy_command, and the engine runs that command
    through the shell when a tool connects to the server: before any SSH banner, whatever
    the server's mode or approval, and even when the connection then fails. A repository
    with such a file was enough. Every release from 3.3.0, where PROXYCOMMAND was
    added, is affected.
    One thing behaves differently on purpose: the .env of the working directory is
    no longer read, unless it is also a file you placed (~/.ssh-manager/.env, your
    home's .env, or the install directory's, which is what a run from a checkout
    reads) or the environment of the MCP server says SSH_MANAGER_TRUST_PROJECT_ENV=1.
    A project file cannot grant that itself, and a file it names through
    SSH_CONFIG_PATH is not read either. When a project .env that defines servers is
    left unread, the engine says so at startup, in ssh_list_servers and in "server not
    found", with the three ways to have it read: move it to ~/.ssh-manager/.env, name
    it with SSH_ENV_PATH, or set the variable (in the env block of the MCP client's
    configuration, where the client's own approval of a project server applies). With a
    file in ~/.ssh-manager/.env, SSH_ENV_PATH or SSH_MANAGER_ENV, nothing changes.
    Two details that come with it: a project .env no longer hides your home .env, and
    a .env written into the project while the engine runs is not picked up.

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