What happened
Before 0.5.3 PowerShell MCP's winrm_exec tool embedded the caller-supplied WinRM username and plaintext password in the PowerShell child process -Command argument when explicit credentials were used. Anyone able to read the process command line on the host can recover the credentials (CVSS 7.8, local).
Why it matters
WinRM credentials are often the same privileged account used to administer Windows nodes that host model/agent workloads. Exposing them in a child-process command line gives a local actor reusable domain/administrative credentials, not just a one-time secret.
Attack vector
When explicit credentials are used, the winrm_exec tool places a script containing the caller-supplied WinRM username and plaintext password in the PowerShell child process's -Command argument, so local users/processes on the host can read it from the process command line (credential exposure).
Affected systems
IMRRD powershell-mcp < 0.5.3 (fixed in 0.5.3)
Mitigation
Upgrade to v0.5.3.