Vulnerabilities in pkg:npm/mcp-ssh-tool

PACKAGE
Advisory Summary

GHSA-j7h9-2jh7-g967 is a HIGH mcp-ssh-tool has file transfer path vulnerability (CWE-208: Observable Timing Discrepancy) affecting Mcp ssh tool libraries in the npm ecosystem. The issue involves mcp-ssh-tool has file transfer path policy bypass and bearer token comparison hardening. Remediation is available by upgrading affected packages to version 2.1.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/mcp-ssh-tool

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/mcp-ssh-tool. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-j7h9-2jh7-g967 - HIGH mcp-ssh-tool has file transfer path policy bypass and bearer token comparison hardening

GHSA-j7h9-2jh7-g967 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j7h9-2jh7-g967
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-208: Observable Timing Discrepancy
Affected Product Mcp ssh tool
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-j7h9-2jh7-g967

To remediate this vulnerability, upgrade all affected Mcp ssh tool dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mcp-ssh-tool fixed: 2.1.1
npm install mcp-ssh-tool@2.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls mcp-ssh-tool

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-j7h9-2jh7-g967, inspect your project dependencies using npm:

npm ls mcp-ssh-tool

Analyze the terminal output to locate any version of Mcp ssh tool in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.1), your application is affected.

Note: The npm ls mcp-ssh-tool command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-208: Observable Timing Discrepancy, where two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not. In Mcp ssh tool, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary `mcp-ssh-tool` has released version `2.1.1` with security hardening for transfer path authorization and HTTP bearer authentication. The release addresses: - insufficient local path policy enforcement in transfer-related filesystem handling - incomplete canonicalization and segment-boundary handling for deny-prefix path policy checks - non-constant-time HTTP bearer token comparison ## Impact Affected versions may allow policy bypass in transfer path handling under specific configurations, and may expose a timing side channel in bearer-token comparison for HTTP deployments. ## Patched Version Upgrade to `mcp-ssh-tool >= 2.1.1`. ```bash npm install -g mcp-ssh-tool@latest ``` ## Workarounds For deployments that cannot immediately upgrade: - avoid exposing HTTP transport beyond loopback - use strict filesystem policy configuration - avoid granting MCP clients access to sensitive local transfer paths - monitor audit logs for unexpected transfer operations ## Credits Reported by `dodge1218`.

GHSA-j7h9-2jh7-g967 Affected Mcp ssh tool Versions

1 component(s)
Fixed Versions:
2.1.1
Product / Package Ecosystem Affected Versions Fixed Version
mcp-ssh-tool
npm
< 2.1.1
2.1.1

References

Frequently Asked Questions

What is GHSA-j7h9-2jh7-g967?
GHSA-j7h9-2jh7-g967 is a security vulnerability in Mcp ssh tool involving mcp-ssh-tool has file transfer path policy bypass and bearer token comparison hardening under CWE-208: Observable Timing Discrepancy.
Which Mcp ssh tool versions are affected?
Affected versions include releases prior to 2.1.1 across affected packages: mcp-ssh-tool.
What version fixes GHSA-j7h9-2jh7-g967?
Upgrading to 2.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mcp-ssh-tool affected?
Yes, mcp-ssh-tool is affected in releases prior to 2.1.1. Upgrade your dependency to 2.1.1 or later.
What CWE is associated with GHSA-j7h9-2jh7-g967?
GHSA-j7h9-2jh7-g967 is classified under CWE-208: Observable Timing Discrepancy (Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not.).
How can I check npm dependencies for GHSA-j7h9-2jh7-g967?
Run the dependency tree command: 'npm ls mcp-ssh-tool'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j7h9-2jh7-g967",
  "modified" : "2026-05-07T21:45:17Z",
  "published" : "2026-05-07T21:45:16Z",
  "aliases" : [ ],
  "summary" : "mcp-ssh-tool has file transfer path policy bypass and bearer token comparison hardening",
  "details" : "## Summary\n\n`mcp-ssh-tool` has released version `2.1.1` with security hardening for transfer path authorization and HTTP bearer authentication.\n\nThe release addresses:\n\n- insufficient local path policy enforcement in transfer-related filesystem handling\n- incomplete canonicalization and segment-boundary handling for deny-prefix path policy checks\n- non-constant-time HTTP bearer token comparison\n\n## Impact\n\nAffected versions may allow policy bypass in transfer path handling under specific configurations, and may expose a timing side channel in bearer-token comparison for HTTP deployments.\n\n## Patched Version\n\nUpgrade to `mcp-ssh-tool >= 2.1.1`.\n\n```bash\nnpm install -g mcp-ssh-tool@latest\n```\n\n## Workarounds\n\nFor deployments that cannot immediately upgrade:\n\n- avoid exposing HTTP transport beyond loopback\n- use strict filesystem policy configuration\n- avoid granting MCP clients access to sensitive local transfer paths\n- monitor audit logs for unexpected transfer operations\n\n## Credits\n\nReported by `dodge1218`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "mcp-ssh-tool"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.1.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/oaslananka/mcp-ssh-tool/security/advisories/GHSA-j7h9-2jh7-g967"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/oaslananka/mcp-ssh-tool"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-208", "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-07T21:45:16Z",
    "nvd_published_at" : null
  }
}