What happened
The SSRF guard in markdownify-mcp before 1.2.0 can be bypassed with DNS names, bracketed IPv6 literals, or IPv4-mapped IPv6 addresses, so an agent-driven URL fetch can reach internal/private and cloud-metadata targets.
Why it matters
An MCP server granting an LLM agent network fetch is a high-value SSRF target: prompt injection can steer the agent to read cloud metadata (IAM credentials) or internal services through the server's fetch primitive, bypassing the intended host restrictions.
Attack vector
An attacker can influence the URLs passed to webpage-to-markdown or git-repo-to-markdown through prompt injection and bypass URL validation by supplying DNS names, bracketed IPv6 literals, or IPv4-mapped IPv6 addresses, letting the MCP server fetch loopback services, internal hosts, or cloud-metadata endpoints.
Affected systems
markdownify-mcp before 1.2.0
Mitigation
Upgrade to markdownify-mcp 1.2.0 or later (fix commit ee00464); restrict the MCP server's network egress and block cloud-metadata endpoints.