Vulnerability GHSA-mf4q-589h-8gwx

High Risk
HIGH RISK
CVSS Score: 7.8
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
11 hours ago
November 30, 2026 at 08:47 PM UTC
PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line
<0.5.3
<0.5.3

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.

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.

Reported responsibly by Syed Anas Mohiuddin, Independent Researcher, Maintainer of mcp-safeguard (@SyedAnas01).

Timeline

Published
11 hours ago
November 30, 2026 at 08:47 PM UTC
Fixed (0.5.3)
2 months ago
September 02, 2026 at 05:26 PM UTC
Last Modified
11 hours ago
November 30, 2026 at 09:00 PM UTC