Vulnerability · Published Aug 31, 2026 · Assigned by GitHub_M
CVE-2026-79743MCPHub: Path Traversal via Malicious MCPB Manifest Name
Medium 6.9
In plain English
A medium-severity path traversal in mcphub from samanhappy. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.13, MCPB File Upload Handler extracts a ZIP file and reads manifest.json from it. The name field in the manifest is directly concatenated into a file path (line 107) without any sanitization or path traversal character validation. An attacker can craft a malicious MCPB file where manifest.name is set to something like ../../../etc/malicious, causing the file to be extracted to an arbitrary location on the file system. The cleanupOldMcpbServer function (line 110) also uses the unsanitized name, potentially allowing deletion of arbitrary directories. This issue has been patched in version 0.12.13.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @samanhappy/mcphub | 0.12.13 | GHSA-p3h2-2j4p-p83g |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| samanhappy | mcphub | < 0.12.13 |
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/samanhappy/mcphub/security/advisories/GHSA-p3h2-2j4p-p83g x_refsource_CONFIRM
- https://github.com/samanhappy/mcphub/pull/770 x_refsource_MISC
- https://github.com/samanhappy/mcphub/releases/tag/v0.12.13 x_refsource_MISC