CVE-2026-49857
Beschrijving NL
auth-fetch-mcp is een MCP-server waarmee AI-assistenten inhoud van geverifieerde webpagina's kunnen ophalen. Versie 3.0.1 implementeert SSRF-beveiliging in `assertSafeUrl ()` (`src/security.ts`) om verzoeken naar privé- en loopback-adressen te blokkeren. De functie `isPrivateV6()` detecteert echter geen IPv4-mapped IPv6-loopbackadressen in hun hex-genormaliseerde vorm. Wanneer een aanvaller een URL levert zoals `http://[::ffff:127.0.0.1]:PORT/`, normaliseert de Node.js WHATWG URL-parser de host in stilte naar `[::ffff:7f00:1]`. Omdat `net.isIPv4(' 7f00:1 ')` `false` retourneert, wordt de privé-IP-controle omzeild en wordt de URL doorgegeven aan de browser of HTTP-client, waardoor de MCP-tool loopback-services kan bereiken die zouden moeten worden geblokkeerd. Het probleem kan worden geëxploiteerd onder de standaardconfiguratie zonder speciale omgevingsvariabele. Versie 3.0.1 lost het probleem op.
Origineel (Engels) tonen
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.