CVE-2026-137308: Markdownify MCP server's SSRF checks could be bypassed with DNS names, bracketed IPv6 and IPv4-mapped IPv6 literals, and scp-style Git URLs, reaching localhost and cloud metadata (fixed 1.2.0)
Markdownify (npm mcp-markdownify-server, GitHub zcaceres/markdownify-mcp) is a popular MCP server that turns web pages, YouTube transcripts, Bing results, documents and Git repos into Markdown for an AI assistant. In 1.1.0 and earlier its SSRF protection only recognised literal IP addresses, so hostnames such as localhost or metadata.google.internal, bracketed IPv6 like [::1], and hex IPv4-mapped IPv6 like ::ffff:a9fe:a9fe passed, and git-repo-to-markdown checked only the URL scheme and accepted scp-style SSH shorthand. A prompt injection could make the assistant fetch loopback services, internal hosts or cloud metadata. Fixed in the v1.2.0 GitHub release (25 November 2026); npm still shows 1.1.0 as the latest version.
What it is
GHSA-pxwh-pcrm-vrm3: validateUrl() passed new URL(url).hostname to the private-ip package, which returns undefined for DNS names (localhost, localhost., *.localhost, metadata.google.internal, or public names that resolve to private IPs) and for bracketed IPv6; private-ip 3.0.2 also treated ::ffff:7f00:1, ::ffff:a9fe:a9fe and 224.0.0.1 as public. Affected tools: webpage-to-markdown, youtube-to-markdown, bing-search-to-markdown.
validateRepoUrl() (git-repo-to-markdown) checked only the scheme for :// URLs, with no private-IP or DNS check, and accepted git@host:path and host:path SSH shorthand.
Fix in v1.2.0 (PR #155): node:net BlockList covering all IANA special-purpose IPv4/IPv6 ranges, fail-closed DNS resolution and localhost/.local/.internal name checks on every redirect hop, the same checks for repository URLs, and scp-style shorthand blocked. The same release also hardens the file path allowlist (#104).
Affected: mcp-markdownify-server <= 1.1.0. As of 26 November 2026 the npm registry's newest version is still 1.1.0, so the fix is only available from the GitHub tag.
How to check
- Search MCP client configs for markdownify or mcp-markdownify-server and note the version (or the commit if you run it from a clone).
- If it runs on a cloud VM or next to internal services, check outbound requests from that host to 169.254.169.254, metadata.google.internal and localhost ports.
How to fix
- Run v1.2.0 or later from the GitHub repository (git checkout v1.2.0, then the README's bun install / build steps) until a fixed version appears on npm.
- Until then, run the server where loopback and internal networks hold nothing sensitive, or block metadata endpoints (IMDSv2 with hop limit 1 on AWS).
- Don't let an assistant with Markdownify enabled browse untrusted pages without reviewing the URLs it fetches.
grep -rnE 'markdownify' ~/Library/Application\ Support/Claude/claude_desktop_config.json ~/.cursor/mcp.json .vscode/mcp.json 2>/dev/null
npm view mcp-markdownify-server version