CVE-2026-49857

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.
Configurations

No configuration.

History

23 Oct 2026, 18:10

Type Values Removed Values Added
Summary
  • (es) auth-fetch-mcp es un servidor MCP que permite a los asistentes de IA obtener contenido de páginas web autenticadas. La versión 3.0.1 implementa protección SSRF en ’assertSafeUrl()’ (’src/security.ts’) para bloquear solicitudes a direcciones privadas y de bucle invertido. Sin embargo, la función ’isPrivateV6()’ no detecta las direcciones de bucle invertido IPv6 mapeadas a IPv4 en su forma hex-normalizada. Cuando un atacante proporciona una URL como ’http://[::ffff:127.0.0.1]:PUERTO/’, el analizador de URL WHATWG de Node.js normaliza silenciosamente el host a ’[::ffff:7f00:1]’. Debido a que ’net.isIPv4(’7f00:1’)’ devuelve ’false’, la verificación de IP privada se omite y la URL se pasa al navegador o cliente HTTP, permitiendo que la herramienta MCP acceda a servicios de bucle invertido que se supone que deben estar bloqueados. El problema es explotable bajo la configuración predeterminada sin ninguna variable de entorno especial. La versión 3.0.1 corrige el problema.

Information

Published : 2026-08-13 15:19

Updated : 2026-10-24 16:10


NVD link : CVE-2026-49857

Mitre link : CVE-2026-49857

CVE.ORG link : CVE-2026-49857


JSON object : View

Products Affected

No product.

CWE
CWE-918

Server-Side Request Forgery (SSRF)