GHSA-mf4q-589h-8gwx

Suggest an improvement
Source
https://github.com/advisories/GHSA-mf4q-589h-8gwx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mf4q-589h-8gwx/GHSA-mf4q-589h-8gwx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mf4q-589h-8gwx
Aliases
Published
2026-11-30T20:47:44Z
Modified
2026-11-30T21:00:04Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

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).

Database specific
{
    "cwe_ids":  [
        "CWE-214"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-30T20:47:44Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @imrrd/powershell-mcp

Package

Name
@imrrd/powershell-mcp
View open source insights on deps.dev
Purl
pkg:npm/%40imrrd/powershell-mcp

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.5.3

Database specific

last_known_affected_version_range
"<= 0.5.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mf4q-589h-8gwx/GHSA-mf4q-589h-8gwx.json"

npm / powershell-mcp

Package

Name
powershell-mcp
View open source insights on deps.dev
Purl
pkg:npm/powershell-mcp

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
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"