Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @samanhappy/mcphub
  4. ›
  5. GHSA-p3h2-2j4p-p83g

GHSA-p3h2-2j4p-p83g: MCPHub has Path Traversal via Malicious MCPB Manifest Name

April 22, 2026 (updated May 5, 2026)

  • Vulnerability Type: Path Traversal (CWE-22)
  • Sink Location: src/controllers/mcpbController.ts:107
  • Vulnerability Description: The name field from an uploaded MCPB manifest is used directly, without sanitization or normalization, to construct a file system path for directory creation and move operations, which may lead to path traversal attacks.

References

  • github.com/advisories/GHSA-p3h2-2j4p-p83g
  • github.com/samanhappy/mcphub/commit/af5b013c09bb0add6b7ad9aaa5b875cf150d2a7c
  • github.com/samanhappy/mcphub/security/advisories/GHSA-p3h2-2j4p-p83g

Code Behaviors & Features

Detect and mitigate GHSA-p3h2-2j4p-p83g with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.12.13

Fixed versions

  • 0.12.13

Solution

Upgrade to version 0.12.13 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@samanhappy/mcphub/GHSA-p3h2-2j4p-p83g.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:23 +0000.