Skip to content

An editorial team and a community building with AI

← All articles

News · markdownify-mcp (MCP server project) · 2 min read

Event date: · Published:

SSRF flaw in markdownify-mcp can expose internal networks and cloud metadata

GitHub disclosed a high-severity SSRF vulnerability, CVE-2026-137308 with a CVSS score of 8.3, in the markdownify-mcp server. Prompt injection can exploit it to reach internal hosts and cloud metadata, and it is fixed in version 1.2.0.

GitHub Security Advisories disclosed a high-severity server-side request forgery vulnerability in markdownify-mcp, an MCP server that converts web pages and git repositories to markdown, on November 26, 2026, in the GitHub Security Advisory for markdownify-mcp. Crafted URLs can bypass the tool's allowlist to reach internal networks and cloud metadata endpoints, and the flaw can be triggered through prompt injection against the agent that calls the tool.

What the advisory reveals

  • Tracked as CVE-2026-137308, rated High with a CVSS score of 8.3, and classified as CWE-918 (Server-Side Request Forgery)
  • Affects markdownify-mcp versions before 1.2.0; fixed in version 1.2.0
  • The flaw sits in the package's URL validation and allowlist logic
  • Attackers can bypass the allowlist using DNS names, bracketed IPv6 addresses, and IPv4-mapped IPv6 addresses
  • The vulnerable functions are the webpage-to-markdown and git-repo-to-markdown MCP tools

What it means for people who build with AI

Because the flaw can be triggered through prompt injection, an attacker does not need direct access to the agent: tricking the model into passing a malicious URL to the webpage-to-markdown or git-repo-to-markdown tool is enough to reach loopback services, internal hosts, or cloud metadata endpoints that serve credentials, risking unauthorized disclosure of sensitive internal or confidential information. It is another example of an MCP server tool becoming an SSRF pivot point once prompt injection tricks an agent into supplying the URL, a pattern that has recurred across many MCP servers this year.

Fix and availability

The issue is fixed in markdownify-mcp version 1.2.0. Projects still running the webpage-to-markdown or git-repo-to-markdown tools on an earlier release remain exposed to the allowlist bypass, including the risk of reaching cloud metadata endpoints that serve credentials.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

SSRF flaw in markdownify-mcp can expose internal networks and cloud metadata | vibecoding.inc