On this page
A small server called mcp-fetch-server gives AI agents a fetch tool. Give an agent the URL, and it fetches the page. A fetch tool can be pointed at anything, so the server checks each URL before it dials and refuses private and loopback addresses. For a tool like this, that check is the whole safety story. Version 1.2.0 fixes a bypass in version 1.1.0, where the refusal depended on how the address was spelled.
This checking is done in two functions - validateUrl and validateResolvedIp. They both overlooked IPv4-mapped IPv6 addresses. Written in its IPv6 form, an address that means 127.0.0.1 on the wire could pass. IPv6 literals in hex form passed too. So did localhost with a trailing dot, and names under .localhost, which systems treat as loopback even though the word in the URL looks like an ordinary host name.
Anyone controlling a URL that the agent fetches can get to those services on the same host, other hosts on the internal network, or cloud metadata endpoints, using one of the spellings. The dangerous one is a metadata endpoint. It can dispense the temporary keys of a cloud server (which can unlock everything else on that account).
How to fix
Move mcp-fetch-server to 1.2.0 or later. Wherever the server is configured, pin the new version, restart the server, and then run the check below against your own deployment. The spelling gap is what the upgrade fixes. It tells you if anything was accessible on your network via that check.
Affected product and versions
Affected product: mcp-fetch-server, an MCP server that fetches URLs for AI agents.
Affected version: 1.1.0.
Fixed version: 1.2.0.
Who is not in scope
The fix is already in on servers 1.2.0 and beyond. There's much less to get from this bypass if the fetch server is on a box that's not running any internal services (no cloud metadata endpoint), although the upgrade still holds. And a deployment where no untrusted person or model output can influence the URLs being fetched has nobody to apply the spellings.
One check to run now
Ask your own fetch server for a trailing-dot localhost address on a port where you run something local, for example http://localhost.:PORT/ with the port filled in. If it returns the local service instead of a refusal, your server is on the open side of this bug. Also try 127.0.0.1 spelled as an IPv4-mapped IPv6 address. What you want is a refusal on both.
What this is not
This is not a flaw in the models that use the fetch tool, and it's not prompt injection. In plain sight is how the URL can arrive. It was simply judged on the basis of its spelling rather than what it resolved to. The record does not mark this flaw as exploited, and there's no sign of attacks yet.
Why spelling decides so many SSRF fixes
Guards against server-side request forgery fail this way often. When a blocklist is compiled based on the common patterns for address, dotted decimal IPv4 and localhost, it needs to also handle all other forms of the thing that the resolver accepts. Resolvers are generous. They accept mapped forms and hex forms and names with dot at the end. Two different things are being read: the text of a URL by the guard, and the resolved address by the dialer. The gap between them is where this class of bug lives.
HOL assessment
Our assessment: the exposed group is teams that let agents fetch URLs from untrusted material, which is most of what a fetch tool is for. Upgrade today if your agents fetch pages that other people wrote, and run the localhost check before you trust the refusal again. Keep the fetch server away from networks where a metadata endpoint answers, until the upgrade lands.
The full source record sits on the HOL Guard evidence page for CVE-2026-141591. Source advisory link: https://hol.org/guard/security/cves/CVE-2026-141591-mcp-fetch-server-110-before-120-ssrf-protection
Related reading: the mysql2 flaw (CVE-2026-139877), where a safety promise depended on a server setting the driver never checked, and the GeoServer chain (CVE-2026-120705), where a patched server stayed exposed because the running version was not the version the team believed was running. Both are our earlier write-ups.
FAQ: Does blocking localhost protect me from CVE-2026-141591?
Not on its own, no. Version 1.1.0 blocked the familiar spellings and missed IPv4-mapped IPv6, hex IPv6 literals, localhost with a trailing dot, and names under .localhost. Then test the trailing-dot and mapped spellings against your own server, after upgrading to 1.2.0 or later. FAQ: How to fix CVE-2026-141591? In every deployment, upgrade mcp-fetch-server to 1.2.0 or later, restart the server, and confirm that a request for a trailing-dot localhost address gets a refusal instead of the local service.
Where to download Guard
HOL Guard is open source and free. You can download Guard Desktop from hol.org/guard/install for macOS 13 or later on Apple silicon, Windows x64, and Linux x86_64, and no terminal is needed. The same page has a one line terminal install too. After installing, hol-guard doctor will verify that the daemon is started and intercept layer is working.