Vulnerability library
Security checkMay 05, 2026

MCPHub has Path Traversal via Malicious MCPB Manifest Name

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): < 0.12.13
  • Patched version(s): 0.12.13

References

Could your website be exposed too?

SmartScanner can check your website for MCPHub has Path Traversal via Malicious MCPB Manifest Name and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 05, 2026