Description
All versions of the package mcp-markdownify-server are vulnerable to Server-Side Request Forgery (SSRF) via the Markdownify.get() function. An attacker can craft a prompt that, once accessed by the MCP host, can invoke the webpage-to-markdown, bing-search-to-markdown, and youtube-to-markdown tools to issue requests and read the responses to attacker-controlled URLs, potentially leaking sensitive information.
Problem types
Server-Side Request Forgery (SSRF)
Credits
Raul Onitza-Klugman (Snyk Security Research)
References
security.snyk.io/vuln/SNYK-JS-MCPMARKDOWNIFYSERVER-10249387
security.snyk.io/vuln/SNYK-JS-MCPMARKDOWNIFYSERVER-10249387
github.com/...ommit/0284aa8f34d32c65e20d8cda2d429b7943c9af03
github.com/...f60f184e8391d1c9e3/src/server.ts#L20C17-L20C29