Vulnerabilities in pkg:npm/@imrrd/powershell-mcp

PACKAGE
Advisory Identifier: GHSA-mf4q-589h-8gwx
Advisory Summary

CVE-2026-137184 is a HIGH (CVSS 7.8) winrm credentials exposed vulnerability (CWE-214: Invocation of Process Using Visible Sensitive Information) affecting PowerShell MCP libraries in the npm ecosystem. The issue involves winrm credentials exposed in spawned powershell command line. Remediation is available by upgrading affected packages to version 0.5.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@imrrd/powershell-mcp

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@imrrd/powershell-mcp. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mf4q-589h-8gwx CVE-2026-137184 HIGH PowerShell MCP: WinRM credentials exposed in spawned PowerShell command line

CVE-2026-137184 at a Glance

CVE Identifier CVE-2026-137184
GHSA Identifier GHSA-mf4q-589h-8gwx
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-214: Invocation of Process Using Visible Sensitive Information
Affected Product PowerShell MCP
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-137184

To remediate this vulnerability, upgrade all affected PowerShell MCP dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@imrrd/powershell-mcp fixed: 0.5.3
npm install @imrrd/powershell-mcp@0.5.3
powershell-mcp fixed: Latest secure release
npm install powershell-mcp@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @imrrd/powershell-mcp

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-137184, inspect your project dependencies using npm:

npm ls @imrrd/powershell-mcp

Analyze the terminal output to locate any version of PowerShell MCP in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.3), your application is affected.

Note: The npm ls @imrrd/powershell-mcp command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-214: Invocation of Process Using Visible Sensitive Information, where a process is invoked with sensitive command-line arguments, environment variables, or other elements that can be seen by other processes on the operating system. In PowerShell MCP, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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. The 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. Reported responsibly by Syed Anas Mohiuddin, Independent Researcher, Maintainer of mcp-safeguard (@SyedAnas01).

CVE-2026-137184 Affected PowerShell MCP Versions

2 component(s)
Fixed Versions:
0.5.3
Product / Package Ecosystem Affected Versions Fixed Version
@imrrd/powershell-mcp
npm
< 0.5.3
0.5.3
powershell-mcp
npm
≤ 0.3.2

References

Frequently Asked Questions

What is CVE-2026-137184?
CVE-2026-137184 is a security vulnerability in PowerShell MCP involving WinRM credentials exposed in spawned PowerShell command line under CWE-214: Invocation of Process Using Visible Sensitive Information.
Which PowerShell MCP versions are affected?
Affected versions include releases prior to 0.5.3 across affected packages: @imrrd/powershell-mcp, powershell-mcp.
What version fixes CVE-2026-137184?
Upgrading to 0.5.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @imrrd/powershell-mcp affected?
Yes, @imrrd/powershell-mcp is affected in releases prior to 0.5.3. Upgrade your dependency to 0.5.3 or later.
Is powershell-mcp affected?
Yes, powershell-mcp is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-137184?
CVE-2026-137184 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-137184?
CVE-2026-137184 is classified under CWE-214: Invocation of Process Using Visible Sensitive Information (A process is invoked with sensitive command-line arguments, environment variables, or other elements that can be seen by other processes on the operating system.).
How can I check npm dependencies for CVE-2026-137184?
Run the dependency tree command: 'npm ls @imrrd/powershell-mcp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mf4q-589h-8gwx",
  "modified" : "2026-11-30T20:47:44Z",
  "published" : "2026-11-30T20:47:44Z",
  "aliases" : [ "CVE-2026-137184" ],
  "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).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@imrrd/powershell-mcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.5.2"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "powershell-mcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.3.2"
      } ]
    } ]
  } ],
  "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-214" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-30T20:47:44Z",
    "nvd_published_at" : null
  }
}