Markdownify MCP server could be crashed via prompt injection
A flaw in zcaceres's markdownify-mcp let attackers exhaust server memory by steering an AI agent into fetching oversized or slow URLs, according to NVD.
By The Agentic Times ·

A vulnerability in markdownify-mcp, an open-source Model Context Protocol server maintained by the developer zcaceres, allowed attackers to crash the server by making it download unbounded amounts of data. The flaw was published as CVE-2026-145358 on 4 December 2026 and affects all versions before 2.0.0, according to the entry in the US National Vulnerability Database.
Markdownify-mcp converts web pages and other files into markdown so that AI agents can read them. MCP is the protocol that lets large language model agents call external tools. According to the NVD record, the server's safeFetch() function buffered response bodies without any size limit or timeout. An attacker who supplied a URL pointing at a slow or oversized response could therefore exhaust the server's memory or leave requests hanging indefinitely, causing the MCP server to crash.
The notable part is how an attacker reaches that function. The NVD description says attackers can steer an LLM agent via prompt injection into calling the webpage-to-markdown tool or related tools. Prompt injection is the technique of planting instructions in content an agent reads, so that the agent follows the attacker's instructions rather than the user's. In this case the agent itself becomes the delivery mechanism: the attacker does not need direct access to the MCP server, only the ability to put text in front of an agent that is connected to it.
The practical effect described in the sources is denial of service rather than data theft. A crashed MCP server takes down the tools it exposes for any agent relying on it. The record does not describe code execution or access to data held by the server.
The issue has been fixed. The NVD entry points to release 2.0.0 of markdownify-mcp and to two commits in the project's repository as the remediation, along with the vulnerable code in version 1.1.0 of the project's Markdownify.ts source file. The record also references a separate repository documenting server-side request forgery issues in the same project, and an advisory published by VulnCheck describing the flaw as uncontrolled resource consumption via unbounded URL fetch.
Operators running markdownify-mcp should check which version they have deployed and move to 2.0.0 or later. Because MCP servers are often installed as local helpers alongside an agent and then forgotten, the version in use may be older than the one a team believes it installed.
The pattern here is one that keeps recurring in MCP tooling. Individually, an unbounded fetch is an ordinary robustness bug of the kind that has existed in HTTP clients for decades. What changes in an agent setting is the reachability: a tool that is only ever called by a trusted human operator has a narrow attack surface, while a tool that an LLM can be talked into calling is exposed to anyone whose text reaches that model. The same function, unchanged, moves from low risk to remotely triggerable.
No exploitation in the wild is described in the sources, and the record lists the status as resolved. The sources do not give a severity score for the vulnerability beyond the description of its impact.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-145358
