{"id":"CVE-2026-137184","aliases":["CVE-2026-137184","GHSA-mf4q-589h-8gwx"],"related":[],"kind":"vulnerability","state":"published","title":"PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line","summary":"PowerShell MCP is a Model Context Protocol server for headless Windows operations. Prior to 0.5.3, the winrm_exec tool places a script containing the caller-supplied WinRM username and plaintext password in the PowerShell child process's -Command argument when explicit credentials are used. Local users or monitoring systems with access to process command lines or retained telemetry can recover the credentials. ssh_exec is not affected because it uses SSH in process. This issue is fixed in 0.5.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PowerShell MCP is a Model Context Protocol server for headless Windows operations. Prior to 0.5.3, the winrm_exec tool places a script containing the caller-supplied WinRM username and plaintext password in the PowerShell child process's -Command argument when explicit credentials are used. Local users or monitoring systems with access to process command lines or retained telemetry can recover the credentials. ssh_exec is not affected because it uses SSH in process. This issue is fixed in 0.5.3.","source":"cvelist"},{"lang":"en","text":"The winrm_exec tool constructed a PowerShell script containing the caller-supplied WinRM username and plaintext password, then passed that full script as the literal value of the PowerShell -Command process argument. Local users, privileged monitoring agents, process-creation audit logs, EDR, or SIEM tooling with access to process command lines could recover the credential while the child ran or from retained telemetry. Exploitation requires use of explicit WinRM credentials plus local process-command-line or log visibility on the MCP host. ssh_exec is not affected because it uses ssh2 in-process.\n\nThe issue is fixed in @imrrd/powershell-mcp 0.5.3 by keeping a fixed non-sensitive PowerShell bootstrap in argv and transporting all caller-controlled WinRM data through child stdin. The deprecated unscoped powershell-mcp package will not receive a patched legacy release; remove it and install @imrrd/powershell-mcp@0.5.3 or later.\n\nReported responsibly by Syed Anas Mohiuddin, Independent Researcher, Maintainer of mcp-safeguard (@SyedAnas01).","format":"markdown","source":"ghsa"}],"published":"2026-11-30T18:30:16.713Z","modified":"2026-11-30T21:00:04.442Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-214"],"affected":[{"ranges":[{"version":"< 0.5.3","status":"affected"}],"vendor":"IMRRD","product":"powershell-mcp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.3"}],"ecosystem":"npm","package":"@imrrd/powershell-mcp","purl":"pkg:npm/%40imrrd/powershell-mcp","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.3.2"}],"ecosystem":"npm","package":"powershell-mcp","purl":"pkg:npm/powershell-mcp","source":"ghsa"}],"references":[{"url":"https://github.com/IMRRD/powershell-mcp/security/advisories/GHSA-mf4q-589h-8gwx","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/IMRRD/powershell-mcp/commit/8ca5bb2d4cbd7acbb94da2a7a46cfb4078c938ff","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/IMRRD/powershell-mcp/releases/tag/v0.5.3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/IMRRD/powershell-mcp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-137184","url":"https://www.cve.org/CVERecord?id=CVE-2026-137184","licence":"CVE Terms of Use","modified":"2026-11-30T18:30:16.713Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mf4q-589h-8gwx","url":"https://github.com/advisories/GHSA-mf4q-589h-8gwx","licence":"CC-BY-4.0","modified":"2026-11-30T21:00:04.442Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-137184","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137184","licence":"Public domain","modified":"2026-11-30T19:17:55.640Z"}],"updatedAt":"2026-11-30T21:27:24.848Z","epss":{"score":0.00277,"percentile":0.21538,"date":"2026-12-01T12:00:22.000Z"}}