Keyrook

NewsPatch Notes

Update available

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.

Diagram showing a crafted web address slipping past the fetch tool's SSRF guard to reach internal services
A crafted address slips past the guard and reaches internal services.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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

02.557.510CVSS 4.0CVSS 3.19.28.6 02.557.510CVSS 4.0CVSS 3.19.28.6
Source: National Vulnerability Database · in score
The numbers
scoreScore
CVSS 4.09.2
CVSS 3.18.6

How the flaw surfaced

  1. 23 May 2026

    First report

    Researcher zhijiewong reports the bypass to the project.

  2. 25 Nov 2026

    Version 1.2.0 ships

    The release replaces the old address checker with a dedicated validator.

  3. 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

  1. SSRF guard bypass via IPv4-mapped IPv6 hex normalization and incomplete private-ip checksGitHub Security Advisory
  2. CVE-2026-141591 DetailNational Vulnerability Database
  3. Release v1.2.0GitHub

More news

All the news
  1. Patch Notes2 min

    Wren:AM 15.3.1 fixes unauthenticated flaw that can lead to remote code execution

    Wren:AM 15.3.1, released December 2, fixes a deserialization flaw scored 9.8 that lets anyone reach the legacy password-reset pages and run code on the server without logging in.

    • Wren:AM
  2. Patch Notes2 min

    Fastify file uploads can hang on a 67 KB request — update @fastify/busboy to 3.2.7

    A single unauthenticated upload of about 67 KB can stall @fastify/busboy forever, leaving Fastify file uploads hanging. Version 3.2.7, released 2 December 2026, fixes it.

    • @fastify/busboy
  3. Patch Notes2 min

    HPE patches two maximum-severity hard-coded credential flaws in Networking COP

    HPE's December 1 update for Networking Central On-Premises fixes 21 flaws, including two hard-coded credential bugs scored 10.0 that let strangers log in over SSH and take full admin control.

    • HPE Networking Central On-Premises (COP)