{"id":"GHSA-mf4q-589h-8gwx","summary":"PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line","details":"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).","aliases":["CVE-2026-137184"],"modified":"2026-11-30T21:00:04.442703331Z","published":"2026-11-30T20:47:44Z","database_specific":{"cwe_ids":["CWE-214"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-11-30T20:47:44Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/IMRRD/powershell-mcp/security/advisories/GHSA-mf4q-589h-8gwx"},{"type":"WEB","url":"https://github.com/IMRRD/powershell-mcp/commit/8ca5bb2d4cbd7acbb94da2a7a46cfb4078c938ff"},{"type":"PACKAGE","url":"https://github.com/IMRRD/powershell-mcp"},{"type":"WEB","url":"https://github.com/IMRRD/powershell-mcp/releases/tag/v0.5.3"}],"affected":[{"package":{"name":"@imrrd/powershell-mcp","ecosystem":"npm","purl":"pkg:npm/%40imrrd/powershell-mcp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mf4q-589h-8gwx/GHSA-mf4q-589h-8gwx.json","last_known_affected_version_range":"\u003c= 0.5.2"}},{"package":{"name":"powershell-mcp","ecosystem":"npm","purl":"pkg:npm/powershell-mcp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.3.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mf4q-589h-8gwx/GHSA-mf4q-589h-8gwx.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}