CVE-2026-7445 Overview
A path traversal vulnerability has been identified in ZachHandley ZMCPTools up to version 0.2.2. The vulnerability affects the MCP Log Resource Handler component, specifically within the file src/managers/ResourceManager.ts. The manipulation of the dirname argument enables attackers to perform path traversal attacks, potentially allowing unauthorized access to files and directories outside the intended scope.
Critical Impact
Authenticated attackers can exploit this path traversal vulnerability remotely to read or manipulate files outside the intended directory structure, potentially exposing sensitive configuration data or system files.
Affected Products
- ZachHandley ZMCPTools versions up to and including 0.2.2
- MCP Log Resource Handler component
- Systems utilizing the affected ResourceManager.ts file
Discovery Timeline
- April 30, 2026 - CVE-2026-7445 published to NVD
- April 30, 2026 - Last updated in NVD database
Technical Details for CVE-2026-7445
Vulnerability Analysis
This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path traversal or directory traversal. The flaw exists in the ResourceManager.ts file within the MCP Log Resource Handler component of ZMCPTools.
The vulnerability allows authenticated users to supply a crafted dirname argument that includes directory traversal sequences (such as ../), enabling them to escape the intended directory boundary. This can lead to unauthorized access to files on the server filesystem that should not be accessible through the application.
The exploit has been publicly disclosed and documented. The project maintainers were notified through a GitHub issue but have not yet responded to the vulnerability report.
Root Cause
The root cause of this vulnerability lies in improper input validation and sanitization of the dirname parameter in the ResourceManager.ts file. The application fails to adequately validate user-supplied directory paths before using them in file system operations, allowing directory traversal sequences to be processed without restriction.
When user input containing path traversal characters (e.g., ../, ..\\) is passed to the dirname argument, the application does not normalize or reject these malicious inputs, permitting attackers to navigate to parent directories and access files outside the intended application scope.
Attack Vector
The attack can be executed remotely over the network by authenticated users. The exploitation process involves:
- An attacker authenticates to the ZMCPTools application with valid credentials
- The attacker crafts a request containing path traversal sequences in the dirname parameter
- The vulnerable ResourceManager.ts processes the malicious input without proper sanitization
- The attacker gains access to files outside the intended directory structure
The vulnerability mechanism involves manipulating the dirname argument to include relative path sequences that traverse up the directory tree. For detailed technical information, refer to the GitHub Issue #8 and VulDB #360186.
Detection Methods for CVE-2026-7445
Indicators of Compromise
- Unusual file access patterns in application logs showing directory traversal sequences (../, ..\\)
- Access attempts to sensitive system files (e.g., /etc/passwd, configuration files) through the MCP Log Resource Handler
- Anomalous requests to the ResourceManager.ts endpoint containing path manipulation characters
- Unexpected file read operations outside the application's designated directory scope
Detection Strategies
- Implement file integrity monitoring on critical system directories and configuration files
- Configure web application firewalls (WAF) to detect and block requests containing path traversal sequences
- Deploy intrusion detection systems (IDS) with signatures for directory traversal attack patterns
- Enable detailed logging for all file system operations initiated by the ZMCPTools application
Monitoring Recommendations
- Monitor application logs for requests containing ../ or encoded variants (%2e%2e%2f, %252e%252e%252f)
- Set up alerts for file access attempts outside the designated resource directories
- Review authentication logs for suspicious user activity correlating with file access anomalies
- Implement real-time monitoring of the MCP Log Resource Handler endpoints for malicious payloads
How to Mitigate CVE-2026-7445
Immediate Actions Required
- Restrict access to the ZMCPTools application to trusted users only until a patch is available
- Implement network-level access controls to limit exposure of the vulnerable component
- Deploy web application firewall rules to block path traversal patterns in request parameters
- Audit existing user access and remove unnecessary privileges from the affected system
Patch Information
No official patch has been released by the maintainers at this time. The project was informed of the vulnerability through GitHub Issue #8 but has not yet responded. Users should monitor the official ZMCPTools repository for security updates.
Additional vulnerability details are available through:
Workarounds
- Implement input validation at the application layer to reject requests containing path traversal sequences
- Use allowlisting to restrict the dirname parameter to known-safe directory paths
- Consider disabling or restricting access to the MCP Log Resource Handler component until patched
- Deploy additional network segmentation to limit the impact of potential file access breaches
# Example input validation configuration (application-level workaround)
# Add path normalization and validation before processing dirname parameter
# Reject any path containing: ../, ..\, %2e, or encoded variants
# Ensure all file paths resolve within the designated application directory
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

