PowerShell MCP winrm_exec exposes WinRM credentials in process command line (CVE-2026-137184)
Summary
Per the vendor advisory, the winrm_exec tool in @imrrd/powershell-mcp versions up to 0.5.2 placed the caller-supplied WinRM username and plaintext password in a PowerShell -Command argument, where tools with access to process command lines could read it. Exploitation requires explicit WinRM credentials plus local process-command-line or log visibility on the MCP host. The issue is fixed in 0.5.3. The deprecated unscoped powershell-mcp package, affected through 0.3.2, will not receive a patch.
Severity
Timeline
The advisory page on the project repository shows this publication date.
The GitHub advisory record lists this publication date, which differs from the repository page. (per the vendor advisory)
How it happened
Per the vendor advisory, winrm_exec built a PowerShell script containing the WinRM username and plaintext password and passed it as the literal -Command argument. Audit logs, EDR or SIEM tooling with access to process command lines could recover the credential while the child ran or from retained telemetry. ssh_exec is not affected because it uses ssh2 in-process. Version 0.5.3 keeps a fixed non-sensitive bootstrap in argv and sends caller-controlled WinRM data through child stdin.
How to check your app
- @imrrd/powershell-mcp <= 0.5.2: Confirm which version is installed. Version 0.5.3 or later contains the fix.
- powershell-mcp (unscoped) <= 0.3.2: Check whether the deprecated unscoped package is installed. It will not receive a patched release.
- @imrrd/powershell-mcp <= 0.5.2, only if winrm_exec was used with explicit WinRM credentials: Note that those credentials may appear in retained process-creation audit logs, EDR or SIEM telemetry on the MCP host.
Sources
Corrections and updates
Cite this entry
- Title
- PowerShell MCP winrm_exec exposes WinRM credentials in process command line (CVE-2026-137184)
- Added
- Nov 30, 2026
- URL
- https://vibeincidents.com/incidents/powershell-mcp-cve-2026-137184/
- Suggested citation
VibeIncidents. "PowerShell MCP winrm_exec exposes WinRM credentials in process command line (CVE-2026-137184)." Nov 30, 2026. https://vibeincidents.com/incidents/powershell-mcp-cve-2026-137184/