← All advisories

CVE-2026-137184highSecret exposure2026-11-30

CVE-2026-137184: PowerShell MCP put WinRM usernames and plaintext passwords on the child process command line, where local users and telemetry could read them (fixed 0.5.3)

PowerShell MCP is an MCP server for headless Windows operations. Before 0.5.3, when explicit credentials were used, its winrm_exec tool built a script containing the caller-supplied WinRM username and plaintext password and passed it in the PowerShell child process's -Command argument. Local users or monitoring systems that can see process command lines or retained telemetry can recover the credentials. ssh_exec is not affected. Fixed in 0.5.3.

01.

What it is

winrm_exec spawns a PowerShell child process to run commands on remote Windows hosts over WinRM.

With explicit credentials, the username and password were embedded in the -Command argument, which is visible in process listings and often recorded by EDR, Sysmon or other command-line logging.

Affected: powershell-mcp before 0.5.3. ssh_exec uses SSH in process and is not affected. CVE published 30 November 2026.

02.

How to check

  1. Check your installed powershell-mcp version is 0.5.3 or later.
  2. Search process-creation logs (e.g. Sysmon event 1, Windows 4688 with command-line auditing) for winrm_exec commands containing credentials.
03.

How to fix

  1. Upgrade powershell-mcp to 0.5.3 or later.
  2. Rotate any WinRM credentials used with winrm_exec on earlier versions, and purge them from retained logs where possible.
# find credentials leaked into retained command-line logs, e.g.
grep -ri 'winrm' /path/to/exported/process-logs | grep -i 'password'
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.