AI fetch tool's SSRF guard missed hex IPv6 addresses — update to 1.2.0
mcp-fetch-server 1.2.0 closes a critical SSRF bypass that let attacker-chosen web addresses reach internal services and cloud metadata. The fix shipped 25 November; the CVE record was published 2 December.

Affects
- mcp-fetch-server
Tracked as
CVE-2026-141591mcp-fetch-server · CVSS 9.2
The fix came first and the CVE record came second. Version 1.2.0 of mcp-fetch-server, released on 25 November, closes a critical server-side request forgery bypass — and the public record for it, CVE-2026-141591, was only published on 2 December. If the server was updated last week, it is already safe. If not, the update is overdue.
mcp-fetch-server is a small tool that gives AI assistants a way to fetch web pages: it powers the fetch tools of the Model Context Protocol, the open standard that lets AI agents call outside tools. The flaw sits in the two functions meant to stop it fetching private addresses, validateUrl and validateResolvedIp.
Affected
- mcp-fetch-server 1.1.0 through 1.1.2
- Any fetch tool built on it: fetch_html, fetch_markdown, fetch_readable, fetch_txt, fetch_json
Safe
- mcp-fetch-server 1.2.0 and later
- Versions up to 1.0.2 were covered by an earlier fix
How the guard was fooled
The guard relied on a small library to decide whether an address was private. That library only recognised IPv4-mapped IPv6 addresses written as dotted numbers, such as ::ffff:127.0.0.1. But the web address parser rewrites those same addresses into compressed hex form — ::ffff:7f00:1 — and in that form the library no longer saw them as private. The check waved them through.
That was not the only gap. The guard also missed multicast and reserved address ranges, let through localhost written with a trailing dot, and let through subdomains of localhost. Any of those spellings could point the fetch tool at the machine itself, at other machines on the same private network, or at the cloud metadata address 169.254.169.254, which hands out credentials on many cloud setups.
An attacker only needs to influence the address the tool is asked to fetch — a link in a document, a page the assistant is told to read, a URL pasted into a chat. The tool then fetches the private address and hands the response back, which can leak internal pages, admin panels and cloud credentials.
Version 1.2.0 replaces the old library with a dedicated checker that unwraps IPv4-mapped IPv6 addresses in both hex and dotted form, blocks all reserved and multicast ranges, normalises trailing dots, blocks subdomains of localhost, and refuses to proceed when an address looks malformed.
Why this matters beyond one small package
Fetch tools are the hands of an AI agent: the model decides what to read, and the tool goes and gets it. A guard that can be fooled by a different spelling of the same address turns every prompt that carries a link into a possible route inside the network. The advisory credits the first report to researcher zhijiewong in May 2026, with several other researchers independently reporting the same weakness afterwards.
The pattern is worth checking elsewhere, too. Any MCP server that fetches attacker-influenced addresses deserves the same question: does its guard handle the hex form of a mapped address, the trailing dot, and the localhost subdomains? If the answer is unknown, treat it as exposed until proven otherwise.
What to do
Close the bypass
Update to 1.2.0 or later
Upgrade mcp-fetch-server to version 1.2.0. The release went out on 25 November, so the update has been available for a week.
Confirm the running version
Check the version actually installed in the MCP setup, not just the one listed in a config file — a pinned older copy is easy to miss.
Audit other fetch servers
Review every MCP server that fetches addresses from model input or user input for the same kind of guard gap, especially access to cloud metadata endpoints.
Limit what the fetcher can reach
Where possible, run fetch tools on a host with no route to internal services and no cloud metadata endpoint, so a bypass has nowhere useful to go.
Two scores for one flaw
The numbers
| score | Score |
|---|---|
| CVSS 4.0 | 9.2 |
| CVSS 3.1 | 8.6 |
How the flaw surfaced
23 May 2026
First report
Researcher zhijiewong reports the bypass to the project.
25 Nov 2026
Version 1.2.0 ships
The release replaces the old address checker with a dedicated validator.
2 Dec 2026
CVE-2026-141591 published
The NVD record goes live, rating the flaw 9.2 under CVSS 4.0 and 8.6 under CVSS 3.1.
The lesson here is a familiar one in security tooling: a check that only recognises one spelling of an address is not a check at all. Update the server, then apply the same test to every other tool that fetches on the model’s behalf.
The GitHub security advisory explains the bypass in full, and the v1.2.0 release carries the fix.
Sources
- SSRF guard bypass via IPv4-mapped IPv6 hex normalization and incomplete private-ip checksGitHub Security Advisory
- CVE-2026-141591 DetailNational Vulnerability Database
- Release v1.2.0GitHub


