Submit #804058: ZachHandley ZMCPTools 0.2.2 Path Traversalinfo

TitleZachHandley ZMCPTools 0.2.2 Path Traversal
DescriptionA path traversal vulnerability (CWE-22) has been identified in ZMCPTools version 0.2.2, specifically within the MCP log resource handling code in src/managers/ResourceManager.ts. The resources/read handler accepts a user-controlled logs://{dirname}/content?file={filename} URI and constructs a filesystem path without validating that the resolved path remains under the intended log directory. An attacker with access to the MCP interface can supply ../ sequences in the dirname parameter to read arbitrary local files accessible to the server process, such as /etc/hosts. No fixed version is available at the time of reporting.
Source⚠️ https://github.com/ZachHandley/ZMCPTools/issues/8
User
 _Eternity_ (UID 97332)
Submission04/14/2026 04:45 (4 months ago)
Moderation04/29/2026 18:53 (16 days later)
StatusAccepted
VulDB entry360186 [ZachHandley ZMCPTools up to 0.2.2 MCP Log Resource ResourceManager.ts dirname path traversal]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!