Browse / Tool and Agent Misuse / CVE-2025-5273
Markdownify MCP Server allows attackers to read arbitrary files
- Class
- Tool and Agent Misuse (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Also involves
- MCP and Tool Server Flaws
- Affected
- mcp-markdownify-server (npm)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS
- 0.4% chance of exploitation in 30 days
How it works, in short
A crafted prompt can make the Markdownify MCP server's file tool read arbitrary files on the host, since the tool does not restrict which paths it opens. (Our summary, written by a model. The source text is below.)
Details
All versions of the package mcp-markdownify-server are vulnerable to Files or Directories Accessible to External Parties via the get-markdown-file tool. An attacker can craft a prompt that, once accessed by the MCP host, will allow it to read arbitrary files from the host running the server.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-5273
- https://github.com/zcaceres/markdownify-mcp/commit/3a6b202d088ef7acb8be84bc09515f41a2b1a9df
- https://github.com/zcaceres/markdownify-mcp
- https://github.com/zcaceres/markdownify-mcp/blob/3667bd4765c0e49684ce22df268d02dd478a7f3b/src/Markdownify.ts#L94
- https://security.snyk.io/vuln/SNYK-JS-MCPMARKDOWNIFYSERVER-10249193
Source: GitHub Advisory Database, used under CC BY 4.0.