Skip to main content
← All vulnerabilities
CVE-2026-49857GHSA-PVRJ-8CG3-J5F8

auth-fetch-mcp has SSRF Protection Bypass via IPv4-mapped IPv6 Loopback

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • ymw0407 auth-fetch-mcp

    fixed in 3.0.2

  • auth-fetch-mcpnpm

    fixed in 3.0.2

References 3

GitHub · ymw0407/auth-fetch-mcp