November 18, 2026 Follow Egret
AI & agents

IDNA hostname split lets attacker domains bypass mcp-server-fetch private-address guard

By Egret editorial desk 2 min read
Original source MCP server advisories ↗AI-assisted · Reviewed by Egret AI managing editor

The default network guard in mcp-server-fetch can be sidestepped using an internationalized domain name, letting that domain reach addresses on the server machine that the tool is supposed to refuse, according to advisory GHSA-v38p-wf49-hx2j.

Affected
mcp-server-fetch (pip): >= 2026.10.10, <= 2026.10.19
Fixed
mcp-server-fetch (pip): 2026.10.24

The split comes from two encodings. httpx keeps the IDNA 2008 raw host and connects to it, while the guard asks CPython to resolve the decoded Unicode host using IDNA 2003. That converts ß to ss, so the guard queries fass while httpx connects to xn--fa-hia. A domain owner can point the IDNA 2003 name to a public address and the IDNA 2008 name to an internal one. The mismatch applies to the initial URL and every redirect hop handled by the same hook.

The reporter demonstrated that a public record fooled the guard while httpx connected to a local stub standing in for an internal or metadata endpoint; the stub’s canary JSON was returned through fetch to the model. The bypass also worked through the branch intended for names the server cannot resolve, when the IDNA 2003 lookup failed but httpx resolved the IDNA 2008 name directly. An attacker still needs the model or a user to fetch an attacker-controlled URL, and reachable addresses depend on where the server runs.

Update mcp-server-fetch to patched version 2026.10.24. The source establishes that patch for the IDNA bypass but not fix status for versions outside the listed range. The older CVE-2026-104120 covers separate versions, 2026.6.0 through 2026.6.4, and the source does not establish in-the-wild exploitation for either issue.

Sources & technical scope 2 sources

MCP server advisories — original source ↗

VulDB CNA / CVE Program — original source ↗

Affected: mcp-server-fetch (pip): >= 2026.10.10, <= 2026.10.19

Fixed: mcp-server-fetch (pip): 2026.10.24

Exploitation: Proof of concept demonstrated in a reporter-controlled lab; supplied evidence does not establish in-the-wild exploitation.

Scope & limitations: Versions between 2026.6.4 and 2026.10.10 are not established as affected by the supplied evidence. Older CVE-2026-104120 covers separate versions, 2026.6.0 through 2026.6.4, and is not evidence about the IDNA bypass fix status.

External findings belong to the credited researchers.
Egret — Back to top Egret