CVE-2025-5273 Markdownify MCP Server allows attackers to read arbitrary files
An attacker can craft a prompt to read arbitrary files from the host running the MCP markdown server via the get-markdown-file tool.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-5273?
CVE-2025-5273 is a high-severity path traversal vulnerability in mcp-markdownify-server, published on 29 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Versions of the package mcp-markdownify-server before 1.0.0 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.
Weakness: CWE-552
Which versions are affected by CVE-2025-5273?
2 open source packages ship an affected version, including mcp-markdownify-server.
| Package | Affected | Fixed in |
|---|---|---|
mcp-markdownify-server npm | All versions to 0.0.1 | None |
mcp-markdownify-server npm | All versions to 0.0.1 | None |
How do I fix CVE-2025-5273?
No fix has been published for CVE-2025-5273 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-5273 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5273 exists.
Sources
Also known as GHSA-22v8-p7h2-rj7p.