Vulnerabilities in pkg:npm/powershell-mcp
PACKAGECVE-2026-137184 is a HIGH (CVSS 7.8) winrm credentials exposed vulnerability (CWE-214: Invocation of Process Using Visible Sensitive Information) affecting PowerShell MCP libraries in the npm ecosystem. The issue involves winrm credentials exposed in spawned powershell command line. Remediation is available by upgrading affected packages to version 0.5.3.
pkg:npm/powershell-mcp
Vulnerability advisories affecting package pkg:npm/powershell-mcp. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mf4q-589h-8gwx | CVE-2026-137184 | HIGH | PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line |
CVE-2026-137184 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-137184
To remediate this vulnerability, upgrade all affected PowerShell MCP 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 @imrrd/powershell-mcp@0.5.3
npm install powershell-mcp@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @imrrd/powershell-mcp
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-137184, inspect your project dependencies using npm:
npm ls @imrrd/powershell-mcp
Analyze the terminal output to locate any version of PowerShell MCP in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.3), your application is affected.
Note: The npm ls @imrrd/powershell-mcp 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-214: Invocation of Process Using Visible Sensitive Information, where a process is invoked with sensitive command-line arguments, environment variables, or other elements that can be seen by other processes on the operating system. In PowerShell MCP, 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
CVE-2026-137184 Affected PowerShell MCP Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@imrrd/powershell-mcp
|
npm |
< 0.5.3
|
0.5.3
|
|
powershell-mcp
|
npm |
≤ 0.3.2
|
|
References
Frequently Asked Questions
What is CVE-2026-137184?
Which PowerShell MCP versions are affected?
What version fixes CVE-2026-137184?
Is @imrrd/powershell-mcp affected?
Is powershell-mcp affected?
What is the CVSS score of CVE-2026-137184?
What CWE is associated with CVE-2026-137184?
How can I check npm dependencies for CVE-2026-137184?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mf4q-589h-8gwx",
"modified" : "2026-11-30T20:47:44Z",
"published" : "2026-11-30T20:47:44Z",
"aliases" : [ "CVE-2026-137184" ],
"summary" : "PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line",
"details" : "The winrm_exec tool constructed a PowerShell script containing the caller-supplied WinRM username and plaintext password, then passed that full script as the literal value of the PowerShell -Command process argument. Local users, privileged monitoring agents, process-creation audit logs, EDR, or SIEM tooling with access to process command lines could recover the credential while the child ran or from retained telemetry. Exploitation requires use of explicit WinRM credentials plus local process-command-line or log visibility on the MCP host. ssh_exec is not affected because it uses ssh2 in-process.\n\nThe issue is fixed in @imrrd/powershell-mcp 0.5.3 by keeping a fixed non-sensitive PowerShell bootstrap in argv and transporting all caller-controlled WinRM data through child stdin. The deprecated unscoped powershell-mcp package will not receive a patched legacy release; remove it and install @imrrd/powershell-mcp@0.5.3 or later.\n\nReported responsibly by Syed Anas Mohiuddin, Independent Researcher, Maintainer of mcp-safeguard (@SyedAnas01).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@imrrd/powershell-mcp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.5.2"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "powershell-mcp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/IMRRD/powershell-mcp/security/advisories/GHSA-mf4q-589h-8gwx"
}, {
"type" : "WEB",
"url" : "https://github.com/IMRRD/powershell-mcp/commit/8ca5bb2d4cbd7acbb94da2a7a46cfb4078c938ff"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/IMRRD/powershell-mcp"
}, {
"type" : "WEB",
"url" : "https://github.com/IMRRD/powershell-mcp/releases/tag/v0.5.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-214" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-30T20:47:44Z",
"nvd_published_at" : null
}
}