@imrrd/powershell-mcp 0.5.3 fixes WinRM credentials being exposed via the subprocess command line
PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line
The winrm_exec tool of @imrrd/powershell-mcp concatenates the caller-provided WinRM username and plaintext password into a PowerShell script and passes it as a -Command argument literal to a subprocess, so the credentials are exposed in the process command line; local users, privileged monitoring agents, process creation audit logs, and EDR and SIEM tools can recover the credentials while the subprocess is running or from retained telemetry (CVE-2026-137184). Exploitation requires the use of explicit WinRM credentials and local process command-line or log visibility on the MCP host; ssh_exec is unaffected because it executes in-process via ssh2. The vulnerability was responsibly disclosed by independent researcher and mcp-safeguard maintainer Syed Anas Mohiuddin.