MCPHub: Authenticated non-admin user achieves RCE via POST /api/servers (missing authorization on stdio command/args)
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-862.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| samanhappy | mcphub | before 0.12.15 | 0.12.15 | Patch available | CNA |
- mcphub Vendorsamanhappy Affected before 0.12.15 Fixed in 0.12.15 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mcphubx:mcphub:*:*:*:*:*:*:*:* | — | — | samanhappy |
- cpe:2.3:a:mcphubx:mcphub:*:*:*:*:*:*:*:* Versions — — ·samanhappy
Remediation
- Fix · CNA mcphub (samanhappy) Fixed in 0.12.15
Timeline
- 2026-10-02 Threatist record created from CVE-2026-79748
- 2026-10-25 EPSS moved to the 50th–90th percentile
References
More samanhappy vulnerabilities
- TI-2026-55225 MCPHub: Missing Authorization on `PUT /api/system-config` Lets Any Non-Admin Rewrite Global Security Configuration CVSS 3.1HIGH 8.8
- TI-2026-55224 MCPHub: Path Traversal via Malicious MCPB Manifest Name CVSS 4.0MEDIUM 6.9
- TI-2025-10335 samanhappy MCPHub sseService.ts handleSseConnectionfunction improper authentication CVSS 4.0MEDIUM 6.9
- TI-2026-61501 MCPHub before 1.0.32 OAuth 2.0 Authentication Bypass CVSS 4.0HIGH 7.6
- TI-2026-55230 MCPHub: SSRF Guard Bypass via IPv6 Transition Addresses in URL Validation CVSS 4.0HIGH 7.6
- TI-2026-55231 Authorization bypass in samanhappy mcphub CVSS 3.1HIGH 7.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences