# GHSA-MF4Q-589H-8GWX: PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-30
- Modified: 2026-11-30

## Tracked as

- [CVE-2026-137184](https://cve.now/CVE-2026-137184.md): PowerShell MCP plaintext WinRM passwords exposed in process command lines

## Affected versions

- @imrrd/powershell-mcp (npm): fixed in 0.5.3
- powershell-mcp (npm): through 0.3.2

## 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/powershell-mcp@0.5.3 or later.

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

## References

- https://github.com/IMRRD/powershell-mcp/security/advisories/GHSA-mf4q-589h-8gwx
- https://github.com/IMRRD/powershell-mcp/commit/8ca5bb2d4cbd7acbb94da2a7a46cfb4078c938ff
- https://github.com/IMRRD/powershell-mcp
- https://github.com/IMRRD/powershell-mcp/releases/tag/v0.5.3

Page: https://cve.now/GHSA-MF4Q-589H-8GWX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
