Skip to main content

auth-fetch-mcp CVE-2026-49857

| EUVDEUVD-2026-58054 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-01 https://github.com/ymw0407/auth-fetch-mcp GHSA-pvrj-8cg3-j5f8
7.4
CVSS 3.1 · Vendor: https://github.com/ymw0407/auth-fetch-mcp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Inject malicious url via prompt injection
  2. Delivery
    Encode target as ::ffff:127.0.0.1 literal
  3. Exploit
    Operator triggers auth_fetch/Capture step
  4. Execution
    isPrivateV6 guard bypassed after URL normalization
  5. Persist
    MCP fetches internal loopback service
  6. Impact
    Internal response returned to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to control or influence the url argument of the auth_fetch tool (or an entry in the urls[] array of download_media), typically via a prompt-injection payload in content the AI agent processes. The payload must encode the internal target as an IPv4-mapped IPv6 literal such as http://[::ffff:127.0.0.1]:PORT/ or its normalized form http://[::ffff:7f00:1]:PORT/ - plain 127.0.0.1 and [::1] are correctly blocked. Works against the default configuration of auth-fetch-mcp v3.0.1 with no special environment variables. Limiting factors: the CVSS vector includes UI:R, meaning an operator must trigger the fetch/Capture step; a reachable internal HTTP service must actually be bound on the target loopback/private address; and impact is confidentiality-only, so the attacker gains read access to responses but cannot alter or disable the internal service through this flaw.

Impact

The supplied CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N yields 7.4 (High): network vector, low complexity, no privileges, but requiring user interaction (the operator clicking the Capture step) and a changed scope reflecting that the request crosses into a different security authority. The impact is confidentiality-only (C:H, I:N, A:N) - an attacker reads responses from internal services but cannot directly modify or crash them via this flaw. A working PoC is documented and reproduced (VULNERABILITY_REPRODUCED=TRUE), so exploit feasibility is high, but there is no KEV entry (not confirmed actively exploited) and no EPSS score was provided, so widespread automated exploitation cannot be asserted. The realistic threat driver is prompt injection: the product README treats prompt-injection resistance as a protection boundary, and an injected url argument in a page the AI agent visits turns UI:R into an attacker-influenced action rather than a genuine barrier. Net: a credible, patch-absent SSRF worth prioritizing wherever auth-fetch-mcp is deployed, tempered by its niche footprint and confidentiality-only impact.

Exploit ScenarioDerived

An attacker plants a prompt-injection payload in a web page that an AI agent using auth-fetch-mcp is asked to read; the payload instructs the agent to invoke auth_fetch with url set to http://[::ffff:127.0.0.1]:PORT/ targeting a local admin panel, metadata endpoint, or credential service. Because the IPv4-mapped IPv6 form slips past isPrivateV6(), the MCP server fetches the loopback service and returns its response body to the attacker-controlled conversation, disclosing internal data. A reproduced PoC confirms the bypass, so exploitation is low-complexity, though it hinges on the operator triggering the tool/Capture step (UI:R).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 01, 2026

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.

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.

Affected VersionsENISA

auth-fetch-mcp < 3.0.2

Affected Packages

npm auth-fetch-mcp fix: 3.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/ymw0407/auth-fetch-mcp) PRIMARY 7.4 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (https://github.com/ymw0407/auth-fetch-mcp).

CVSS VectorVendor: https://github.com/ymw0407/auth-fetch-mcp

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.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:

ts
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 guard

The Node.js WHATWG URL class (conforming to the URL Living Standard) hex-normalizes IPv4-mapped IPv6 addresses:

Input hostnameAfter 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):

  1. src/tools.ts:119 - auth_fetch accepts user-controlled url: z.string() (source).
  2. src/tools.ts:128-131 - handler calls navigateTo(ctx, url), passing the raw URL.
  3. src/browser.ts:58 - navigateTo() calls assertSafeUrl(url).
  4. src/security.ts:74-108 - assertSafeUrl() delegates IPv6 host validation to isPrivateV6(); hex-normalized loopback bypasses the check.
  5. src/browser.ts:66 - page.goto(safeUrl.toString()) issues a browser request to the internal address.
  6. 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):

  1. src/tools.ts:198-210 - download_media accepts user-controlled urls[].
  2. src/tools.ts:233-234 - each URL passes through assertSafeUrl() then ctx.request.get(safeUrl.toString()).
  3. 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=TRUE

PoC

Prerequisites:

bash
git clone https://github.com/ymw0407/auth-fetch-mcp.git
cd auth-fetch-mcp
npm ci
npm run build
npx playwright install --with-deps chromium

Terminal 1 - start a loopback-only internal service:

bash
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):

bash
npx auth-fetch-mcp@3.0.1

MCP tool invocation:

json
{
  "tool": "auth_fetch",
  "arguments": {
    "url": "http://[::ffff:127.0.0.1]:31337/"
  }
}

Expected vs. actual behavior:

URLExpectedActual
http://127.0.0.1:31337/BLOCKBLOCK (correct)
http://[::1]:31337/BLOCKBLOCK (correct)
http://[::ffff:127.0.0.1]:31337/BLOCKALLOW (vulnerable)
http://[::ffff:7f00:1]:31337/BLOCKALLOW (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():

diff
 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-mcp locally: 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-mcp as a shared MCP server faces the same risk against internal network services reachable from the host.
  • The auth_fetch UI: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.

Executive ViewAI

Why It Matters

auth-fetch-mcp v3.0.1 contains a vulnerability that allows attackers to access internal systems and loopback networks by bypassing security controls in URL validation. Publicly available exploit code exists for this vulnerability, and no vendor-released patch has been identified at time of analysis, leaving organizations using this tool in Claude or Claude Code deployments exposed to immediate risk of internal infrastructure compromise and data exfiltration.

Business Impact: High
Compensating Controls

Restrict MCP tool access to verified internal users only; implement network egress filtering to prevent outbound connections to private IP ranges and loopback interfaces from Claude systems; disable auth-fetch-mcp v3.0.1 in production unless business-critical; enable egress traffic and internal service access logging and monitoring for anomalous connection patterns.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Rare
obscure single-maintainer npm MCP tool, minimal production footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

57
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy