Dev.to AI 🤖 Ai 👁 0 📖 8 min read

MCP Inspector 1.0.7 Patches a NAT64 SSRF That Could Reach Cloud Metadata — Update Now

On November 27, 2026, the Model Context Protocol Inspector shipped version 1.0.7 (and 2.17.0 on the 2.x line) with a security fix every MCP developer should care about: a server-side request forgery hole that could let a

On November 27, 2026, the Model Context Protocol Inspector shipped version 1.0.7 (and 2.17.0 on the 2.x line) with a security fix every MCP developer should care about: a server-side request forgery hole that could let a malicious MCP server reach your cloud metadata endpoint. The bug is tracked as GHSA-v2gx-m79c-pvxj, rated low severity with a CVSS score of 3.7 — but "low severity" here describes the narrow conditions needed to exploit it, not the impact if those conditions are met. Cloud metadata means temporary credentials. Temporary credentials mean everything the machine can do.

This is the third security fix for the Inspector in about two weeks, and the pattern matters more than any single patch. The tool we all use to test MCP servers has become part of the trust boundary itself — and it is being hardened in public, one advisory at a time.

What the bug actually was

The Inspector's Node backend has a guarded fetch, implemented in fetchGuard.ts. Its job is simple: when the Inspector needs to fetch something on behalf of a connected MCP server — most importantly, OAuth authorization server metadata — it checks the destination address against a blocklist first. The blocklist covered the obvious dangerous addresses:

  • 169.254.0.0/16 (the link-local range, home of the cloud metadata endpoint)
  • Two named cloud-metadata IPv4 addresses
  • Their IPv4-mapped IPv6 forms
  • fe80::/10 (link-local IPv6)
  • fd00:ec2::254 (an AWS-specific metadata address)

What it did not cover was the NAT64 well-known prefix, 64:ff9b::/96, defined in RFC 6052. NAT64 is the mechanism networks use to let IPv6-only hosts reach IPv4 services: an IPv4 address gets embedded in the low 32 bits of an IPv6 address. So the familiar metadata address 169.254.169.254 has a NAT64 form:

64:ff9b::a9fe:a9fe

That's 64:ff9b:: followed by a9fe:a9fe — the hex encoding of 169.254.169.254. To a guard that only understands IPv4 dotted quads and IPv4-mapped IPv6, this address looks harmless. To a NAT64 gateway, it is 169.254.169.254.

The attack is straightforward. A malicious — or compromised — MCP server names a NAT64 address as its OAuth protected-resource authorization server, or as the MCP server URL itself. The Inspector's backend, doing its normal OAuth discovery fetch, requests that address directly. On a host whose network provides NAT64/DNS64 egress, the fetch is translated and lands on the cloud metadata service. The response can contain temporary credentials for the machine's IAM role.

Three conditions have to line up: a malicious server, an Inspector running somewhere with NAT64 egress, and a metadata service reachable through it. That is why the severity is low. But if you run the Inspector on a cloud VM — which is exactly where many developers run it, because that's where their test infrastructure lives — two of those three conditions are already true. The only remaining question is whether you ever connect to a server you don't fully trust.

See the gap for yourself

You don't need a lab to understand the encoding. This snippet uses only Node's built-in modules to show how the metadata address hides inside the NAT64 prefix:

// nat64-check.mjs — run with: node nat64-check.mjs
// Illustrates how 169.254.169.254 hides inside 64:ff9b::/96 (RFC 6052)
import net from "node:net";

function embeddedIPv4(ipv6) {
  if (!net.isIPv6(ipv6)) return null;
  // Expand the address so the last 32 bits are visible
  const [head, tail = ""] = ipv6.split("::");
  const headParts = head ? head.split(":").filter(Boolean) : [];
  const tailParts = tail ? tail.split(":").filter(Boolean) : [];
  const missing = 8 - headParts.length - tailParts.length;
  const full = [...headParts, ...Array(missing).fill("0"), ...tailParts];
  // NAT64 well-known prefix: first 96 bits are 64:ff9b::/96
  if (full[0] !== "64" || full[1] !== "ff9b") return null;
  const last = full.slice(6); // last 32 bits
  const hi = parseInt(last[0], 16);
  const lo = parseInt(last[1], 16);
  return [(hi >> 8) & 0xff, hi & 0xff, (lo >> 8) & 0xff, lo & 0xff].join(".");
}

const candidate = "64:ff9b::a9fe:a9fe";
console.log(candidate, "->", embeddedIPv4(candidate));
// 64:ff9b::a9fe:a9fe -> 169.254.169.254

// A correct guard must reject the address BEFORE fetching,
// not just its dotted-quad form.
const blocked = ["169.254.0.0/16", "64:ff9b::/96", "fe80::/10"];
console.log("Guard list must include:", blocked.join(", "));

The point isn't the snippet — it's the mental model. Any allow-list or block-list that reasons about addresses in only one notation is incomplete. IPv4, IPv4-mapped IPv6 (::ffff:169.254.169.254), and NAT64 (64:ff9b::a9fe:a9fe) are three spellings of the same destination. A fetch guard has to normalize all of them before deciding.

The attack flow, end to end

flowchart LR
    A["Attacker MCP server\n(names 64:ff9b::a9fe:a9fe\nas its OAuth auth server)"] --> B["Inspector Node backend\n(fetchGuard.ts)"]
    B -->|"OAuth discovery fetch\n(blocklist misses NAT64 prefix)"| C["NAT64 / DNS64 gateway"]
    C -->|"Translates to 169.254.169.254"| D["Cloud metadata service"]
    D -->|"Temporary IAM credentials"| B

The fix, in 1.0.7 and 2.17.0, adds the NAT64 well-known prefix to the blocked set. It is a small diff with a large lesson: the guard was written by people who knew the metadata threat well — they blocked five different representations of it — and still missed one encoding. Address-based security is a game of enumerating spellings, and the spellings keep growing.

This is the third fix in two weeks — read the pattern

The NAT64 hole did not arrive alone. The Inspector's recent release train tells a story:

Release Date Advisory What it fixed
2.15.0 / 1.0.5 12 Nov 2026 GHSA-fvg8-f358-w2c8 SSRF in fetchGuard.ts — OAuth URL could be an IP literal like 100.100.100.200 (Alibaba Cloud metadata)
2.15.0 / 1.0.5 12 Nov 2026 GHSA-9w48-x22j-rrm7 Unbounded POST SSE response could OOM the Inspector proxy
2.15.0 / 1.0.5 12 Nov 2026 GHSA-5572-x678-xmv8 Authorization bypass in paths.ts
2.15.0 / 1.0.5 12 Nov 2026 GHSA-pp85-586h-2m95 server.json import could change what a command runs via env defaults
2.16.0 / 1.0.6 18 Nov 2026 GHSA-3xgv-mvj6-g78r Unbounded long-lived GET event-stream read could crash the backend, bypassing the earlier cap
2.17.0 / 1.0.7 27 Nov 2026 GHSA-v2gx-m79c-pvxj NAT64 SSRF — the subject of this article

And the story goes back further: in late October, maintainers patched an SSRF where malicious SSE servers could redirect Inspector requests to link-local metadata endpoints, introducing createGuardedFetch() in the same file. Every one of these bugs has the same shape: the Inspector connects to a server, and the server gets to influence what the Inspector's backend fetches, reads, or executes.

That is not a flaw in the Inspector's design. It is the job description. A tool for testing MCP servers must, by definition, talk to servers it has never seen before. The question is never "is this tool trusted?" — it is "how much damage can an untrusted server do through it?"

What to do today

1. Update the Inspector. If you use the 1.x line, you want 1.0.7 or later. On the 2.x line, 2.17.0 or later. The fastest check:

npx @modelcontextprotocol/inspector@latest --version

If your installed version is older, update before your next debugging session. This is a two-minute job; there is no reason to defer it.

2. Treat every MCP server as untrusted input. This is the rule I wrote about in my earlier piece on MCP server safety, and the Inspector's advisory history is the proof. A server you connect to — even through a debugging tool — can send you malicious tool descriptions, poisoned prompts, oversized streams, and now, crafted OAuth endpoints. Connect to unknown servers only in a throwaway environment, never from a machine holding production credentials.

3. Don't run the Inspector on a machine with a live metadata service. If your dev VM has an IAM role attached, the metadata endpoint is a credential dispenser. Run the Inspector locally, or on a VM with no role, or with the metadata service disabled. The same applies to any agent harness that fetches server-controlled URLs.

4. Harden the metadata endpoint itself. On AWS, use IMDSv2 (token-required) and set the hop limit to 1 so containerized workloads can't reach it. On GCP, use the equivalent metadata concealment. Egress firewall rules that block 169.254.169.254 outright are cheap insurance — they protect you from the next encoding somebody finds, not just this one.

5. Audit your own fetch guards. If you build MCP servers or agent tooling — and I do, with MCP Pure, a hub for high-performance MCP servers — check every place your code fetches a URL a server (or a user, or a model) supplied. Ask: does my guard normalize IPv4-mapped IPv6? NAT64? Decimal and octal IP spellings (http://2852039166/ is also 169.254.169.254)? DNS rebinding? If the answer to any of those is "I'm not sure," the answer is no.

The good news in 2.17.0

The same release that fixes the SSRF also ships something genuinely useful: the MCP Events extension (SEP-3415) is now marked Final, with a web Events tab, CLI and TUI support, poll and push runners, and webhook subscription management in the Inspector. Events are how servers push state changes to clients without polling — the kind of thing that makes long-running agent sessions practical. It is worth upgrading for the feature, not just the fix.

That pairing — a security fix and a capability release in the same version — is the healthy pattern. The MCP ecosystem is maturing in public: advisories are published quickly, fixes land in days, and the protocol keeps gaining the features production agents need. The right response isn't to stop using the tools. It's to update them, understand what they trust, and never extend that trust to a server you haven't vetted.

Update your Inspector today. Then go back to building — on the other side of a guard that finally speaks NAT64.

Sources

Discussion: Do you run the Inspector (or any agent harness) on a machine with cloud credentials attached? What does your setup look like — local only, throwaway VM, or something stricter? I'm curious how other MCP builders draw this line.

Thanks for reading! I'm Shaswat Raj — I build CampusLoop, IndexFast, SopKit and open-source dev tools.
GitHub: https://github.com/playlikeboy/ · LinkedIn: https://www.linkedin.com/in/sh20raj/ · YouTube: https://youtube.com/@stackshade

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.