Skip to main content
EPSS 0.5%top 56%

CVE-2026-79743: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in samanhappy mcphub

0
Medium
VulnerabilityCVE-2026-79743cvecve-2026-79743cwe-22
Published: 08/31/2026 (08/31/2026, 17:57:01 UTC)
Source: CVE Database V5
Vendor/Project: samanhappy
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

samanhappy

mcphub

Affected versions
<0.12.13

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 15:27:55 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses