mcp-markdownify-server Files or Directories Accessible to External Parties Vulnerability

Vulnerability

A vulnerability exists in all versions of the mcp-markdownify-server package, allowing files or directories to be accessed by external parties through the 'get-markdown-file' tool. An attacker can create a prompt that, when processed by the MCP host, enables the reading of arbitrary files from the server's host system.

Impact

Exploitation of this vulnerability could lead to unauthorized access to sensitive files on the server where mcp-markdownify-server is running.

Reproduction

To reproduce this vulnerability, use the 'get-markdown-file' tool to request a file. The server will read the file and return its contents. If the 'MD_SHARE_DIR' environment variable is not set, the server will read files from any location, including sensitive system files.

Remediation

A fix has been implemented in the master branch of the mcp-markdownify-server repository, but it has not yet been published.

Added: Sep 1, 2025, 7:22 PM
Updated: Sep 1, 2025, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.3
exploitability
7.7
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.