MCPHub: Authenticated non-admin user achieves RCE via POST /api/servers (missing authorization on stdio command/args)
No fixed version listed yet.Check the vendor advisory. References ↓
samanhappy · mcphub
MCPHub's POST /api/servers and PUT /api/servers/:name endpoints (before version 0.12.15) spawn the stdio process defined in a submitted server configuration without restricting who can submit it or validating its command and args fields. An authenticated non-admin user over the network can supply an arbitrary binary such as /bin/sh with chosen arguments, which MCPHub then runs as its own OS user, commonly root in the published Docker image and in npx or systemd deployments, with no user interaction required.
Official description · CVE.org
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.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Disclosed on 31 Aug 2026. No public exploit code or confirmed exploitation is recorded.
Affected versions and fixes
as published in the CVE recordsamanhappy mcphub
Affected: < 0.12.15