Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local or monitoring/telemetry access to MCP host
-
Exploitwinrm_exec invoked with explicit WinRM credentials
-
ExecutionRead child PowerShell process command line or retained logs
-
ImpactRecover plaintext WinRM username and password
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Exploitation requires three concrete conditions, all stated by the advisory: (1) the winrm_exec tool is used with EXPLICIT WinRM credentials (a username and plaintext password passed to the tool) - default/integrated authentication paths and the ssh_exec tool are not affected because ssh_exec uses ssh2 in-process; (2) the affected version is deployed (@imrrd/powershell-mcp <= 0.5.2 or unscoped powershell-mcp <= 0.3.2); and (3) the attacker or observer has local process-command-line visibility or access to retained process-creation telemetry on the MCP host (a local user, privileged monitoring agent, EDR, SIEM, or audit log). Limiting factors: no remote network vector, credentials are only exposed when explicit credentials are actually used, and an observer must already have local or log/telemetry access to the MCP host - so environments relying on ssh_exec, or never passing explicit WinRM passwords, are not exposed. |
| Impact | This is a credential-disclosure flaw (CWE-214) in the winrm_exec tool: when explicit WinRM credentials are supplied, the plaintext username and password are embedded in the PowerShell child process's -Command argument, where they are visible to local users and to process-command-line-aware tooling (EDR, SIEM, process-creation audit logs, monitoring agents) both live and in retained telemetry. The provided CVSS vector (AV:L/AC:L/PR:L/UI:N) correctly models this as a local, low-privilege, no-interaction issue, and the 7.8 score reflects the claimed C:H/I:H/A:H. However, the I:H and A:H ratings appear inflated for the vulnerability itself: the defect leaks information and does not directly modify or deny service on the vulnerable component - integrity/availability impact only materializes downstream if the recovered WinRM credentials are reused, which is a secondary effect rather than a direct property of this flaw. No EPSS score, KEV listing, or exploit code is present in the input, and the vuln.today decision label is 'this_week' (not act_now/emergency). Net real-world risk is moderate and conditional: it is a genuine credential-leak priority in environments that use explicit WinRM credentials with this server and have local/telemetry visibility, but it is not a remotely exploitable, mass-scannable issue. Treat it as a this-week remediation, not a drop-everything emergency. |
| Exploit ScenarioDerived | On a host running PowerShell MCP (<= 0.5.2 of @imrrd/powershell-mcp, or <= 0.3.2 of the unscoped powershell-mcp), an operator invokes winrm_exec with explicit WinRM credentials. A local low-privileged user, or a monitoring/EDR/SIEM agent that records process command lines, observes the spawned PowerShell process whose -Command argument contains the plaintext username and password, or later recovers them from retained process-creation telemetry. No public exploit code is identified at time of analysis; exploitation requires only reading process metadata and no special tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
Plaintext WinRM usernames and passwords leak into the PowerShell child process command line when the winrm_exec tool is called with explicit credentials in @imrrd/powershell-mcp through 0.5.2 (and the deprecated unscoped powershell-mcp through 0.3.2), where local users and command-line-aware telemetry such as EDR, SIEM, process-creation audit logs or monitoring agents can read them - both while the child runs and from retained records afterwards. The exposure is limited to confidentiality: an observer gains working WinRM credentials but does not modify the MCP host through this flaw, and only deployments that actually pass an explicit username and password are affected, since ssh_exec uses ssh2 in-process and is unaffected. Vendor-released patch: 0.5.3, which keeps a fixed non-sensitive bootstrap in argv and ships all caller-supplied WinRM data over child stdin; no public exploit identified at time of analysis, and the issue is rated this_week rather than emergency.
RemediationAI
Vendor-released patch: upgrade to @imrrd/powershell-mcp 0.5.3 or later (https://github.com/IMRRD/powershell-mcp/releases/tag/v0.5.3, advisory https://github.com/IMRRD/powershell-mcp/security/advisories/GHSA-mf4q-589h-8gwx), which fixes the leak by keeping a constant bootstrap in argv and delivering the WinRM payload over child stdin. Uninstall the deprecated unscoped powershell-mcp package and replace it with the scoped one at 0.5.3+, since no patched legacy release is planned for the old name - the 0.3.3 compatibility package merely forwards to ^0.5.3 and should not be relied on as a standalone installation. Where upgrading must wait, stop passing explicit WinRM usernames and passwords to winrm_exec and rely on non-explicit authentication paths, or route the operation through ssh_exec (ssh2 in-process, unaffected), accepting the loss of WinRM-specific transport and authentication options; note that any credential already passed under 0.5.2 may persist in process-creation logs and EDR/SIEM telemetry, so rotate the affected WinRM accounts rather than assuming the exposure ends at upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PowerShell MCP is a Model Context Protocol server exposing headless Windows operations as tools; the winrm_exec tool previously built a PowerShell script string containing the caller's WinRM computer name, username and plaintext password and passed that whole string as the literal value of the child process's -Command argument through the runPowerShell helper. Any process-command-line reader - a local user running process enumeration, a privileged monitoring agent, EDR/SIEM ingestion, or Windows process-creation audit records - could recover the credential material while the child lived or from logs kept afterwards, which is the CWE-214 class of sensitive information inserted into process-visible metadata. The 0.5.3 fix moves to stdin transport: runPowerShell gains an optional stdin field and opens a pipe for it instead of 'ignore', and winrm.ts introduces a constant WINRM_BOOTSTRAP script that reads [Console]::In, base64-decodes a JSON payload, rebuilds the credential with ConvertTo-SecureString/[PSCredential], nulls the plaintext variables, and calls Invoke-Command; because the argv is now fixed and non-sensitive, credentials no longer enter process metadata or environment variables. ssh_exec is unaffected because it drives ssh2 in-process rather than spawning a PowerShell child with arguments.
Know when npm gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local visibility of process command lines (AV:L, PR:L, AC:L) discloses credentials (C:H), but the flaw itself alters nothing on the host, so I:N and A:N.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 1 npm packages depend on @imrrd/powershell-mcp (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.5.3.
Technical POC Analysis
CWE-214: Invocation of Process Using Visible Sensitive Information.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-137184 in @imrrd/powershell-mcp through 0.5.2 and unscoped powershell-mcp through 0.3.2 exposes plaintext WinRM credentials on the command line of spawned PowerShell processes. Any local user or EDR/SIEM/process-audit telemetry can capture these credentials from live processes or retained logs, enabling lateral movement to Windows hosts with the compromised accounts. Leadership should care because credential exposure can lead to unauthorized access to critical systems, especially in environments with weak credential hygiene.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The npm ci command in npm 7.x and 8.x through 8.1.3 proceeds with an installation even if dependency information in pack
DNS rebinding against the local Streamable HTTP MCP listener in @zereight/mcp-gitlab before 2.1.30 lets a malicious web
Archive extraction in the Node.js decompress package allows a crafted archive containing chained symlink entries to reso
The legacy DOC renderer in File Viewer emits document-controlled hyperlink targets into generated HTML after character e
Untrusted git configuration includes reachable through simple-git before 4.0.0 let an attacker execute arbitrary command
A remote, unauthenticated denial-of-service condition in the NestJS (Nest) microservices framework lets an attacker cras
Deeply nested brace patterns cause unbounded recursion in the npm brace-expansion library, exhausting the native stack a
Stack exhaustion in the npm library brace-expansion (all versions prior to 1.1.19, 2.1.5, 3.0.7, and 5.0.10) lets a craf
Native-code execution at install time is achievable against npm consumers of install-artifact-from-github through 1.6.0
Seroval deserialization can invoke attacker-chosen callables when an application passes untrusted input to fromJSON and
The JavaScript library ip-address (npm) fails to treat the NAT64 local-use prefix 64:ff9b:1::/48 as private, so applicat
Cross-family subnet comparisons in the ip-address npm library (all versions before 10.7.1) can cause isInSubnet and isHo
EUVD-2026-139633
GHSA-mf4q-589h-8gwx
NVD
CVE.org
EPSS
Exploit-DB