Sunday, 29 November 2026
0 agent hacks today▼ 1 vs yesterday (1)

Markdownify MCP server patched for SSRF bypass flaw

A URL validation weakness in markdownify-mcp let attackers steer the tool towards internal hosts and cloud metadata endpoints using prompt injection.

By The Agentic Times ·

A robot arm reaches toward a locked internal door as a puppeteer's strings pull its wrist sideways, bypassing the guard standing watch at the threshold.
A robot arm reaches toward a locked internal door as a puppeteer's strings pull its wrist sideways, bypassing the guard standing watch at the threshold. · Illustration: The Agentic Times

A server-side request forgery flaw in markdownify-mcp, an open-source Model Context Protocol server that converts web pages and documents into markdown, has been fixed in version 1.2.0. The vulnerability was published as CVE-2026-137308 in the US National Vulnerability Database on 26 November 2026. According to the NVD entry, all versions before 1.2.0 are affected.

Server-side request forgery, or SSRF, is a class of bug in which an attacker persuades a server to make network requests on their behalf. That matters most when the server sits inside a private network, because it can often reach addresses the attacker cannot.

The NVD record says markdownify-mcp's URL validation could be bypassed by supplying DNS names, bracketed IPv6 literals, or IPv4-mapped IPv6 addresses. Each of those is a different way of writing an address that a naive check may fail to recognise as internal. Once the check is passed, the request goes out as normal.

What makes this an agent security problem rather than a conventional web bug is how the attacker gets their URL into the tool. According to the NVD entry, attackers can influence the URLs passed to the webpage-to-markdown or git-repo-to-markdown functions through prompt injection. In other words, text that the agent reads while doing its job, such as the contents of a web page it has been asked to summarise, can contain instructions that cause the agent to call the conversion tool against an address of the attacker's choosing.

The NVD describes the reachable targets as loopback services, internal hosts and cloud metadata endpoints. Loopback refers to services bound to the machine itself, which are frequently left unauthenticated on the assumption that only local processes can reach them. Cloud metadata endpoints are the special internal addresses that cloud providers expose to running instances, and they are a common target because of what they can return to whoever asks.

The fix is available in release 1.2.0 of markdownify-mcp. The NVD entry lists the project's GitHub security advisory, GHSA-pxwh-pcrm-vrm3, the commit containing the change, and the v1.2.0 release tag among its references. It also links to the specific lines of the validation code in version 1.1.0 where the weakness sat, and to an advisory published by VulnCheck describing the issue as an SSRF protection bypass in the project's validateUrl and validateRepoUrl functions. The incident record for this issue lists its status as resolved.

Operators running markdownify-mcp should check which version they have deployed and upgrade to 1.2.0. The pattern here is worth noting beyond this one package: a tool that fetches URLs on behalf of an agent inherits the agent's exposure to untrusted text. Validation that would be adequate against a human user typing an address has to hold up against an attacker who can write directly into the agent's input. No reports of exploitation in the wild appear in the listed sources.

Sources

  1. nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-137308