Vulnerability  ·  2026-12-04

mcp-fetch-server SSRF bypass of IPv4-mapped IPv6 / localhost validation

VulnerabilityMedium impactGlobalCVE-2026-141591
The fetch MCP tool's validation fails to reject IPv4-mapped IPv6 and localhost aliases, so an LLM agent given a crafted URL (or prompt-injected into fetching one) can make the server request internal addresses and return the responses.
Many fetch-style MCP tools are wired to read a URL chosen by the model. A bypass in the SSRF guard turns a fetch tool into an internal-network and metadata-discovery primitive for the agent.
validateUrl and validateResolvedIp fail to block IPv4-mapped IPv6 addresses; URLs using hex-form IPv6 literals, trailing-dot localhost, or *.localhost names can bypass the SSRF guard so the fetch tool submits requests to internal-only addresses
mcp-fetch-server 1.1.0 before 1.2.0
Upgrade to mcp-fetch-server 1.2.0 or later.
NVD — CVE-2026-141591github.com/zcaceres/fetch-mcp Fetcher.ts
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →