Vulnerabilities/

MCPHub has Path Traversal via Malicious MCPB Manifest Name

Severity:
High

Description

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.

Recommendation

Update the @samanhappy/mcphub package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@samanhappy/mcphub
Anything's wrong? Let us know Last updated on May 05, 2026