Vulnerabilities in pkg:npm/mcp-ssh-tool
PACKAGEGHSA-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.
pkg:npm/mcp-ssh-tool
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
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.
npm install mcp-ssh-tool@2.1.1
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
GHSA-j7h9-2jh7-g967 Affected Mcp ssh tool Versions
1 component(s)| 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?
Which Mcp ssh tool versions are affected?
What version fixes GHSA-j7h9-2jh7-g967?
Is mcp-ssh-tool affected?
What CWE is associated with GHSA-j7h9-2jh7-g967?
How can I check npm dependencies for GHSA-j7h9-2jh7-g967?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}