Skip to content
The Injection_
LIVE
LIVElast sweep next in--:--:--

[ RSS ][ JSON ][ llms.txt ]

fetch-mcp: IPv6 address forms slipped past its SSRF guard

fetch-mcp trusted the private-ip library to spot internal addresses, and hex-form IPv6 literals walked straight through it.

· fetch-mcp · Research by zhijiewong, Shmulik Cohen

CVE-2026-141591
HIGHVulnerability

fetch-mcp's SSRF guard missed IPv4-mapped IPv6 addresses, so an attacker-chosen URL could reach loopback services, internal networks and cloud metadata through any of its five fetch tools. Fixed in 1.2.0.

01What happened

The fetch-mcp maintainers published a GitHub Security Advisory on 30 November 2026 for an SSRF guard bypass in the mcp-fetch-server package. VulnCheck assigned CVE-2026-141591 on 2 December and lists eight reporters, with zhijiewong named as the first, reporting on 23 May 2026. Version 1.2.0 carries the fix.

02How it works

fetch-mcp's validateUrl and validateResolvedIp checks relied on the private-ip library to reject internal addresses. The WHATWG URL parser rewrites an IPv4-mapped IPv6 literal into hex form, which private-ip did not recognize as private. The same library also missed multicast and reserved ranges, a trailing-dot localhost, and wildcard localhost subdomains. Version 1.2.0 replaces it with a custom CIDR and reserved-range validator that unwraps mapped addresses and fails closed on malformed input.

03Who is affected

Versions 1.1.0 up to 1.2.0 of mcp-fetch-server are affected. Any caller able to choose the URL passed to fetch_html, fetch_markdown, fetch_readable, fetch_txt or fetch_json can read the response, which in an agent means a web page or document that steers the tool. The advisory names cloud metadata at 169.254.169.254, loopback services and RFC 1918 networks as reachable.

04What to do

Update mcp-fetch-server to 1.2.0 or later; the project's latest release when the advisory went out was 2.0.1. Where the server runs next to cloud credentials, also block egress to link-local and internal ranges at the network level, because the bypassed guard sits inside the process.

Questions people ask

Which fetch-mcp tools does CVE-2026-141591 affect?
All five fetch tools. The advisory names fetch_html, fetch_markdown, fetch_readable, fetch_txt and fetch_json as sharing the bypassed validation, so an attacker who controls the URL handed to any of them can read responses from internal targets. Upgrading mcp-fetch-server to 1.2.0 replaces the private-ip check with a validator covering all five entry points.
Is the fetch-mcp SSRF bypass the same as CVE-2025-65513?
No. The fetch-mcp advisory explicitly distinguishes CVE-2026-141591 from CVE-2025-65513, and separately references CVE-2025-8020 for the related gap in multicast and reserved ranges. CVE-2026-141591 covers the IPv4-mapped IPv6 hex normalization bypass, together with private-ip's incomplete handling of trailing-dot localhost and wildcard localhost subdomains.
How does an attacker reach the fetch-mcp SSRF without server access?
Through content the agent fetches. fetch-mcp exists so an agent can pull web pages, so any page or document that persuades the agent to request an attacker-chosen URL supplies the input. Reaching the cloud metadata address then returns instance credentials inside the tool response, which lands in the model's context and can travel onward from there.

Sources 3 links, all fetched

  1. 1github.comfetch-mcp Advisory
  2. 2vulncheck.comVulnCheck Advisory
  3. 3github.comVersion 1.2.0