Skip to content
HighVulnerability

GHSA-mf4q-589h-8gwx: PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line

Published
Record updated
View JSON
Affected
  • powershell-mcp <= 0.3.2
  • @imrrd/powershell-mcp <= 0.5.2, fixed in 0.5.3, released September 2, 2026, 89 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.

Summary

The winrm_exec tool in @imrrd/powershell-mcp built a PowerShell script containing the caller-supplied WinRM username and plaintext password and passed it as the literal -Command argument. Local users, monitoring agents, process-creation audit logs, EDR, or SIEM tooling with access to process command lines could recover the credential. Exploitation requires explicit WinRM credentials plus local process-command-line or log visibility on the MCP host; ssh_exec is not affected.

Mitigation

Fixed in @imrrd/powershell-mcp 0.5.3, which keeps a fixed non-sensitive PowerShell bootstrap in argv and passes caller-controlled WinRM data through child stdin. The deprecated unscoped powershell-mcp package will not receive a patched release; remove it and install @imrrd/powershell-mcp@0.5.3 or later.