CVE-2026-79743: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in samanhappy mcphub
Description
CVE-2026-79743 is a path traversal vulnerability in samanhappy mcphub prior to version 0.12.13. The MCPB File Upload Handler extracts a ZIP file and reads a manifest.json file, where the name field is concatenated into a file path without sanitization. This allows an attacker to craft a malicious file that can be extracted to arbitrary locations on the file system. Additionally, the unsanitized name is used in a cleanup function that may delete arbitrary directories. The issue has been patched in version 0.12.13.
CVSS v4.0
Score 6.9medium
Affected software
samanhappy
mcphub
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in samanhappy mcphub involves improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the MCPB File Upload Handler reads the name field from manifest.json inside an uploaded ZIP file and directly concatenates it into a file path without validating or sanitizing path traversal characters. This allows an attacker to specify paths like '../../../etc/malicious' to write files outside the intended directory. Furthermore, the cleanupOldMcpbServer function uses the same unsanitized name, potentially enabling deletion of arbitrary directories. This flaw was fixed in version 0.12.13.
Potential Impact
An attacker can exploit this vulnerability to write files to arbitrary locations on the file system, potentially overwriting critical files or placing malicious files. The cleanup function's use of the unsanitized name may allow deletion of arbitrary directories, leading to data loss or service disruption. The CVSS score of 6.9 (medium severity) reflects the network attack vector with no privileges or user interaction required but limited impact on confidentiality and integrity.
Mitigation Recommendations
This vulnerability has been patched in samanhappy mcphub version 0.12.13. Users should upgrade to version 0.12.13 or later to remediate this issue. No other mitigation guidance is provided or required as the fix addresses the root cause by sanitizing the input path.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-25T14:08:18.108Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a95c2eeacd9273b496c0dd3
Added to database: 08/31/2026, 18:07:42 UTC
Last enriched: 09/07/2026, 15:27:55 UTC
Last updated: 10/14/2026, 06:48:21 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.