Description
MCPHub is a unified hub for centrally managing and dynamically orchestrating multiple MCP servers/APIs into separate endpoints with flexible routing strategies. Prior to version 0.12.15, the POST /api/servers and PUT /api/servers/:name endpoints in MCPHub create/update MCP server configurations and then immediately spawn the configured stdio process via child_process.spawn. Authentication is required, but there is no authorization check restricting these endpoints to admins, and there is no allowlist/sanitization on the command and args fields. As a result, any authenticated non-admin user can submit a server configuration with command:"/bin/sh" (or any other binary) and arbitrary args, causing MCPHub to execute the attacker-controlled process as the MCPHub server's OS user (commonly root in the published Docker image and in npx/systemd deployments). This issue has been patched in version 0.12.15.
Published: 2026-08-31
Score: 9.9 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises when MCPHub processes the POST /api/servers and PUT /api/servers/:name endpoints. They create or update server configurations and immediately spawn the declared stdio process via child_process.spawn. Although authentication is required, there is no authorization check to restrict these actions to administrators, and the command and args fields are not sanitized or allowed‑listed. Consequently, any authenticated user can submit a configuration that specifies a command such as /bin/sh with arbitrary arguments, causing the MCPHub service to execute that command under the OS user running the service, which in many deployments is root. This results in remote code execution, allowing the attacker to run arbitrary code, obtain full system privileges, and compromise the host.

Affected Systems

Systems impacted are installations of samanhappy:mcphub prior to version 0.12.15. This includes the Docker image distributed by the project and any npx or systemd deployments that use the published image. The vulnerability exists in versions earlier than 0.12.15; version 0.12.15 and later contain the fix that enforces admin‑only access and validates the command and args fields.

Risk and Exploitability

The CVSS score is 9.9, indicating critical severity. EPSS is not available, and the vulnerability is not listed in CISA KEV, but the lack of an authorization boundary in a web API that can be invoked by any authenticated user means that exploitation is straightforward for anyone who can obtain valid credentials. Once the attacker composes a suitable configuration payload, the server will spawn the attacker‑controlled process as the MCPHub OS user, often root, providing full control of the host. Given the high severity and the ease of construction of the exploit payload, the risk is considerable for all environments that expose these API endpoints.

Generated by OpenCVE AI on August 31, 2026 at 20:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade MCPHub to version 0.12.15 or later, which enforces administrator‑only access to the /api/servers endpoints and validates command and args.
  • If an upgrade is not immediately feasible, restrict access to these endpoints to administrator accounts by configuring the authentication middleware or firewall rules to block non‑admin users.
  • As an additional safeguard, run the MCPHub container as a non‑privileged user or remove the ability to spawn arbitrary processes; alternatively, deploy a process isolation mechanism such as seccomp or AppArmor to limit the capabilities of spawned child processes.

Generated by OpenCVE AI on August 31, 2026 at 20:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 31 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description MCPHub is a unified hub for centrally managing and dynamically orchestrating multiple MCP servers/APIs into separate endpoints with flexible routing strategies. Prior to version 0.12.15, the POST /api/servers and PUT /api/servers/:name endpoints in MCPHub create/update MCP server configurations and then immediately spawn the configured stdio process via child_process.spawn. Authentication is required, but there is no authorization check restricting these endpoints to admins, and there is no allowlist/sanitization on the command and args fields. As a result, any authenticated non-admin user can submit a server configuration with command:"/bin/sh" (or any other binary) and arbitrary args, causing MCPHub to execute the attacker-controlled process as the MCPHub server's OS user (commonly root in the published Docker image and in npx/systemd deployments). This issue has been patched in version 0.12.15.
Title MCPHub: Authenticated non-admin user achieves RCE via POST /api/servers (missing authorization on stdio command/args)
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-31T18:40:47.698Z

Reserved: 2026-08-25T14:08:18.109Z

Link: CVE-2026-79748

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-31T18:17:20.340

Modified: 2026-08-31T19:17:13.667

Link: CVE-2026-79748

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T20:15:05Z

Weaknesses