{"id":"CVE-2026-42449","aliases":["CVE-2026-42449","GHSA-56c3-vfp2-5qqj"],"related":[],"kind":"vulnerability","state":"published","title":"n8n-MCP: IPv4-mapped IPv6 addresses bypass SSRF protection in validateUrlSync(), enabling full SSRF for SDK embedders","summary":"n8n-MCP is an MCP server that provides AI assistants access to n8n node documentation, properties, and operations. In versions 2.47.4 through 2.47.13, the SDK embedder path (N8NDocumentationMCPServer constructor, getN8nApiClient(), and validateInstanceContext()), the synchronous URL validator in SSRFProtection.validateUrlSync() had no IPv6 checks. IPv4-mapped IPv6 addresses such as http://[::ffff:169.254.169.254] bypassed the cloud-metadata, localhost, and private-IP range checks. An attacker able to supply an n8nApiUrl value could cause the server to issue HTTP requests to cloud metadata endpoints, RFC1918 private networks, or localhost services. Response bodies are returned to the caller (non-blind SSRF), and the n8nApiKey is forwarded in the x-n8n-api-key header to the attacker-controlled target. Projects with deployments embedding n8n-mcp as an SDK using N8NDocumentationMCPServer or N8NMCPEngine with user-supplied InstanceContext are affected. The first-party HTTP server deployment was not primarily affected — it has a second async validator (validateWebhookUrl) that catches IPv6 addresses. This issue has been fixed in version 2.47.14. If users are unable to upgrade immediately as a workaround they can validate URLs before passing to the SDK, restrict egress at the network layer, and reject user-controlled n8nApiUrl values.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"n8n-MCP is an MCP server that provides AI assistants access to n8n node documentation, properties, and operations. In versions 2.47.4 through 2.47.13, the SDK embedder path (N8NDocumentationMCPServer constructor, getN8nApiClient(), and validateInstanceContext()), the synchronous URL validator in SSRFProtection.validateUrlSync() had no IPv6 checks. IPv4-mapped IPv6 addresses such as http://[::ffff:169.254.169.254] bypassed the cloud-metadata, localhost, and private-IP range checks. An attacker able to supply an n8nApiUrl value could cause the server to issue HTTP requests to cloud metadata endpoints, RFC1918 private networks, or localhost services. Response bodies are returned to the caller (non-blind SSRF), and the n8nApiKey is forwarded in the x-n8n-api-key header to the attacker-controlled target. Projects with deployments embedding n8n-mcp as an SDK using N8NDocumentationMCPServer or N8NMCPEngine with user-supplied InstanceContext are affected. The first-party HTTP server deployment was not primarily affected — it has a second async validator (validateWebhookUrl) that catches IPv6 addresses. This issue has been fixed in version 2.47.14. If users are unable to upgrade immediately as a workaround they can validate URLs before passing to the SDK, restrict egress at the network layer, and reject user-controlled n8nApiUrl values.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn the SDK embedder path (`N8NDocumentationMCPServer` constructor, `getN8nApiClient()`, and `validateInstanceContext()`), the synchronous URL validator in `SSRFProtection.validateUrlSync()` had no IPv6 checks. IPv4-mapped IPv6 addresses such as `http://[::ffff:169.254.169.254]` bypassed the cloud-metadata, localhost, and private-IP range checks. An attacker able to supply an `n8nApiUrl` value could cause the server to issue HTTP requests to cloud metadata endpoints (AWS IMDS, GCP, Azure, Alibaba, Oracle), RFC1918 private networks, or localhost services. Response bodies are returned to the caller (non-blind SSRF), and the `n8nApiKey` is forwarded in the `x-n8n-api-key` header to the attacker-controlled target.\n\nThe first-party HTTP server deployment was not primarily affected — it has a second async validator (`validateWebhookUrl`) that catches IPv6 addresses.\n\nImpact category: **CWE-918** (Server-Side Request Forgery).\n\n### Affected\n\nDeployments embedding n8n-mcp as an SDK using `N8NDocumentationMCPServer` or `N8NMCPEngine` with user-supplied `InstanceContext` on versions **v2.47.4 through v2.47.13**.\n\n### Patched\n\n**v2.47.14** and later.\n\n- npm: `npx n8n-mcp@latest` (or pin to `>= 2.47.14`)\n- Docker: `docker pull ghcr.io/czlonkowski/n8n-mcp:latest`\n\n### Workarounds\n\nIf developers cannot upgrade immediately:\n\n- **Validate URLs before passing to the SDK** — reject any `n8nApiUrl` whose hostname is an IP literal (bracketed IPv6 or dotted IPv4) before calling `N8NDocumentationMCPServer` / `getN8nApiClient()`. Accept only URLs with DNS-resolvable hostnames.\n- **Restrict egress at the network layer** — block outbound traffic from the n8n-mcp process to RFC1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local `169.254.0.0/16`, and cloud metadata endpoints. Defense-in-depth against this class of issue and recommended even after upgrading.\n- **Do not accept user-controlled `n8nApiUrl` values** — if the project's integration derives the URL from internal configuration only, this vulnerability is not reachable.\n\nUpgrading to v2.47.14 is still strongly recommended.\n\n### Credit\n\nReported by @manthanghasadiya.","format":"markdown","source":"ghsa"},{"lang":"es","text":"n8n-MCP es un servidor MCP que proporciona a los asistentes de IA acceso a la documentación, propiedades y operaciones de los nodos n8n. En las versiones 2.47.4 a 2.47.13, la ruta del incrustador del SDK (constructor N8NDocumentationMCPServer, getN8nApiClient() y validateInstanceContext()), el validador de URL síncrono en SSRFProtection.validateUrlSync() no tenía comprobaciones de IPv6. Direcciones IPv6 mapeadas a IPv4 como http://[::ffff:169.254.169.254] eludieron las comprobaciones de metadatos de la nube, localhost y rangos de IP privadas. Un atacante capaz de proporcionar un valor n8nApiUrl podría hacer que el servidor emitiera solicitudes HTTP a puntos finales de metadatos de la nube, redes privadas RFC1918 o servicios localhost. Los cuerpos de respuesta se devuelven al llamador (SSRF no ciego), y la n8nApiKey se reenvía en el encabezado x-n8n-api-key al objetivo controlado por el atacante. Los proyectos con implementaciones que incrustan n8n-mcp como un SDK utilizando N8NDocumentationMCPServer o N8NMCPEngine con InstanceContext proporcionado por el usuario se ven afectados. La implementación del servidor HTTP de primera parte no se vio afectada principalmente - tiene un segundo validador asíncrono (validateWebhookUrl) que detecta las direcciones IPv6. Este problema ha sido solucionado en la versión 2.47.14. Si los usuarios no pueden actualizar inmediatamente, como una solución alternativa pueden validar las URL antes de pasarlas al SDK, restringir la salida en la capa de red y rechazar los valores n8nApiUrl controlados por el usuario.","source":"nvd"}],"published":"2026-04-30T18:12:54.000Z","modified":"2026-10-26T20:10:00.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":">= 2.47.4, < 2.47.14","status":"affected"}],"vendor":"czlonkowski","product":"n8n-mcp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.47.4","status":"affected","fixed":"2.47.14"}],"ecosystem":"npm","package":"n8n-mcp","purl":"pkg:npm/n8n-mcp","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.47.4","fixed":"2.47.14"}],"vendor":"n8n-mcp","product":"n8n-mcp","cpe":"cpe:2.3:a:n8n-mcp:n8n-mcp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/czlonkowski/n8n-mcp/security/advisories/GHSA-56c3-vfp2-5qqj","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/czlonkowski/n8n-mcp/commit/9639f757853149f0cb16663cc8b6b6468f27a25f","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42449","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/czlonkowski/n8n-mcp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-08T14:15:26.183Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42449","url":"https://www.cve.org/CVERecord?id=CVE-2026-42449","licence":"CVE Terms of Use","modified":"2026-05-08T14:15:33.465Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-56c3-vfp2-5qqj","url":"https://github.com/advisories/GHSA-56c3-vfp2-5qqj","licence":"CC-BY-4.0","modified":"2026-05-11T13:53:08.967Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42449","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42449","licence":"Public domain","modified":"2026-10-26T20:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:20.926Z","epss":{"score":0.00206,"percentile":0.11322,"date":"2026-12-01T12:00:22.000Z"}}