All vulnerabilities

npm

CVE-2026-137184

PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line

Severity
High 7.8
Published
30 Nov 2026
Last changed
30 Nov 2026
Added to UpHeron
30 Nov 2026
Fixed in
0.5.3
Weakness
CWE-214
Attack
Needs local access · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-mf4q-589h-8gwx
Sources
OSV.dev and GitHub

Description

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.

The 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/[email protected] or later.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
@imrrd/powershell-mcpnpm · osv:npm:@imrrd/powershell-mcp
  • Every version before 0.5.3
powershell-mcpnpm · osv:npm:powershell-mcp
  • Every version up to 0.3.2

About @imrrd/powershell-mcp

Weekly downloads (npm)
182npm, 30 Nov 2026

This is the only vulnerability in @imrrd/powershell-mcp in our list.

About powershell-mcp

Weekly downloads (npm)
17npm, 30 Nov 2026

This is the only vulnerability in powershell-mcp in our list.

References