CVE-2026-79748samanhappy mcphub
Unauthorized Remote Code Execution in MCPHub
Critical 9.9
Follow: this CVE · samanhappy · samanhappy mcphub We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 9.9
- EPSS
- —
- Auth required
- Yes
- Published
- Aug 31, 2026
- Updated
- Sep 8, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-862
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
What happens
MCPHub prior to version 0.12.15 allows authenticated non-admin users to execute arbitrary code. The POST /api/servers and PUT /api/servers/:name endpoints lack authorization checks and input validation on command and args parameters, enabling an authenticated attacker to spawn OS processes with MCPHub server privileges.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 0.12.15
Update MCPHub to version 0.12.15 or later to apply authorization restrictions and parameter validation.
- Apply the vendor's security update for mcphub.
Affected products
- samanhappy · mcphub
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.