What happened
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.
Why it matters
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.
Attack vector
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
Affected systems
mcp-fetch-server 1.1.0 before 1.2.0
Mitigation
Upgrade to mcp-fetch-server 1.2.0 or later.