News · zcaceres/fetch-mcp (npm package mcp-fetch-server) · 2 min read
Event date: · Published:
Critical SSRF flaw disclosed in widely used MCP fetch server
A critical SSRF vulnerability (CVE-2026-141591), disclosed on December 2, 2026, lets attacker-controlled URLs in mcp-fetch-server reach internal hosts and cloud metadata endpoints; it is patched in version 1.2.0.
GitHub Security Advisories disclosed a critical server-side request forgery (SSRF) vulnerability in mcp-fetch-server, an MCP tool commonly bundled into AI coding agents for retrieving web content, on December 2, 2026. The advisory GHSA-ppjf-mrw7-5wm8 shows how an attacker-controlled URL can make the tool reach internal hosts and cloud metadata endpoints.
What the advisory discloses
- Advisory GHSA-ppjf-mrw7-5wm8, tracked as CVE-2026-141591, was published on December 2, 2026 at 03:31 UTC.
- The flaw affects mcp-fetch-server versions 1.1.0 up to 1.2.0.
- It scores 8.6 (High) on CVSS 3.1 and 9.2 (Critical) on CVSS 4.0, and is classified as CWE-918 Server-Side Request Forgery.
- The bug lives in the
validateUrlandvalidateResolvedIpfunctions, which fail to block IPv4-mapped IPv6 literals. - Hex-form IPv6 literals, a trailing-dot
localhost., and*.localhostnames all bypass the SSRF guard. - The issue is patched in version 1.2.0.
Why it matters for AI builders
MCP fetch servers are a common building block for AI coding agents that retrieve web content, and this flaw shows how a single malicious page could trick an agent into pivoting into internal infrastructure or stealing cloud credentials through metadata endpoints. Because the attacker-controlled URL can arrive through prompt injection, anyone wiring MCP tools into a coding agent faces a direct supply-chain risk, not just a theoretical one.
What to do now
Teams running mcp-fetch-server between versions 1.1.0 and 1.2.0 should upgrade to version 1.2.0, where the SSRF guard has been fixed, and review any agent setup that lets an MCP fetch tool follow URLs sourced from untrusted content.
Sources
- GHSA-ppjf-mrw7-5wm8: mcp-fetch-server SSRF via IPv4-mapped IPv6 address bypass (GitHub Security Advisories, December 2, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.