WinRM credentials exposed in spawned PowerShell command line in PowerShell MCP server
In @imrrd/powershell-mcp up to 0.5.2, the winrm_exec tool built a PowerShell script containing the caller-supplied WinRM username and plaintext password, then passed that script as the literal value of the PowerShell -Command process argument. Local users, 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. The maintainers fixed this in 0.5.3 by keeping a fixed non-sensitive bootstrap in argv and moving caller-controlled WinRM data to child stdin. GitHub assigned CVE-2026-137184 for GHSA-mf4q-589h-8gwx.
- Affected artifact
- IMRRD/powershell-mcp — @imrrd/powershell-mcp, winrm_exec toolmcp server
- Affected versions
- @imrrd/powershell-mcp ≥ 0 to < 0.5.3
- Fixed in
- 0.5.3
- Last verified
- 2026-12-02
- Upstream aliases
- GHSA-mf4q-589h-8gwxCVE-2026-137184
Severity
CVSS 4.0 score 8.5 (High), scored by HOL.
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
What this means
GHSA-mf4q-589h-8gwx / CVE-2026-137184: PowerShell MCP before 0.5.3 puts WinRM credentials in the spawned PowerShell command line, where local process and log readers can recover them. Upgrade to 0.5.3 or later.
What to do
Upgrade @imrrd/powershell-mcp to 0.5.3 or later. Remove the deprecated unscoped powershell-mcp package. Rotate any WinRM credential that was used with a vulnerable version, since it may sit in process or audit logs.
Evidence
Precondition. Use of explicit WinRM credentials through winrm_exec, plus local process-command-line or log visibility on the MCP host. The ssh_exec tool is not affected.
Source proof. Per the advisory, the credential is recoverable from the spawned PowerShell process command line or from retained process-creation telemetry while or after winrm_exec runs with explicit WinRM credentials. HOL did not run the tool; this rests on the advisory.
Version determination. Determined by range — The advisory states @imrrd/powershell-mcp <= 0.5.2 is affected, patched in >= 0.5.3.
Disclosure
Disclosure state: independent public · Publisher: IMRRD/powershell-mcp
Naming decision: named. Vendor named as drafted. Finding already public under GHSA-mf4q-589h-8gwx with fix in 0.5.3; naming call sits with this job under Nov 24-25 2026 rules.
Vendor response: fixed — Fix shipped in @imrrd/powershell-mcp 0.5.3.
2026-09-02 · vendor action
Maintainers published advisory GHSA-mf4q-589h-8gwx and the 0.5.3 fix.
2026-12-02 · guard update
Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in 0.5.3.
2026-12-02 · guard update
Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in 0.5.3.
2026-12-02 · disclosure
Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in 0.5.3.
Affected artifact references
Cite this record
[HOL-VULN-2026-0009] WinRM credentials exposed in spawned PowerShell command line in PowerShell MCP server — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0009
Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0009
Found an error in this record, or want to appeal it? Report an issue or appeal.
Appeal or correct this record
Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.