{"id":"CVE-2026-39974","aliases":["CVE-2026-39974","GHSA-4ggg-h7ph-26qr"],"related":[],"kind":"vulnerability","state":"published","title":"n8n-MCP has an Authenticated SSRF via instance-URL header in multi-tenant HTTP mode","summary":"n8n-MCP is a Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations. Prior to 2.47.4, an authenticated Server-Side Request Forgery in n8n-mcp allows a caller holding a valid AUTH_TOKEN to cause the server to issue HTTP requests to arbitrary URLs supplied through multi-tenant HTTP headers. Response bodies are reflected back through JSON-RPC, so an attacker can read the contents of any URL the server can reach — including cloud instance metadata endpoints (AWS IMDS, GCP, Azure, Alibaba, Oracle), internal network services, and any other host the server process has network access to. The primary at-risk deployments are multi-tenant HTTP installations where more than one operator can present a valid AUTH_TOKEN, or where a token is shared with less-trusted clients. Single-tenant stdio deployments and HTTP deployments without multi-tenant headers are not affected. This vulnerability is fixed in 2.47.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"n8n-MCP is a Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations. Prior to 2.47.4, an authenticated Server-Side Request Forgery in n8n-mcp allows a caller holding a valid AUTH_TOKEN to cause the server to issue HTTP requests to arbitrary URLs supplied through multi-tenant HTTP headers. Response bodies are reflected back through JSON-RPC, so an attacker can read the contents of any URL the server can reach — including cloud instance metadata endpoints (AWS IMDS, GCP, Azure, Alibaba, Oracle), internal network services, and any other host the server process has network access to. The primary at-risk deployments are multi-tenant HTTP installations where more than one operator can present a valid AUTH_TOKEN, or where a token is shared with less-trusted clients. Single-tenant stdio deployments and HTTP deployments without multi-tenant headers are not affected. This vulnerability is fixed in 2.47.4.","source":"cvelist"},{"lang":"en","text":"## Impact\nAn authenticated Server-Side Request Forgery in `n8n-mcp` allows a caller holding a valid `AUTH_TOKEN` to cause the server to issue HTTP requests to arbitrary URLs supplied through multi-tenant HTTP headers. Response bodies are reflected back through JSON-RPC, so an attacker can read the contents of any URL the server can reach — including cloud instance metadata endpoints (AWS IMDS, GCP, Azure, Alibaba, Oracle), internal network services, and any other host the server process has network access to.\n\nThe primary at-risk deployments are multi-tenant HTTP installations where more than one operator can present a valid `AUTH_TOKEN`, or where a token is shared with less-trusted clients. Single-tenant stdio deployments and HTTP deployments without multi-tenant headers are not affected.\n\n## Affected versions\n`n8n-mcp` ≤ `2.47.3` (all versions up to and including 2.47.3).\n\n## Patched versions\n`n8n-mcp` `2.47.4` and later.\n\n## Workarounds\nIf you cannot immediately upgrade:\n1. **Egress filtering at the network layer** — block outbound traffic from the `n8n-mcp` container 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 any other internal ranges. This defends against any future SSRF-class issue and is recommended even after upgrading.\n2. **Disable multi-tenant headers** — if your deployment does not require per-request instance switching, unset `ENABLE_MULTI_TENANT` and do not accept `x-n8n-url` / `x-n8n-key` headers at the reverse proxy.\n3. **Restrict `AUTH_TOKEN` distribution** — ensure the bearer token is only held by fully trusted operators until you can upgrade.\n\n## Remediation\nUpgrade to `n8n-mcp` 2.47.4 or later. No configuration changes are required; the fix adds validation at the URL entry points and normalizes URLs at the API client layer.\n\n## Credits\nReported by the Eresus Security Research Team. @ibrahmsql","format":"markdown","source":"ghsa"},{"lang":"es","text":"n8n-MCP es un servidor de Protocolo de Contexto de Modelo (MCP) que proporciona a los asistentes de IA acceso completo a la documentación, propiedades y operaciones de los nodos de n8n. Antes de la versión 2.47.4, una falsificación de petición del lado del servidor autenticada en n8n-mcp permite a un llamador que posee un AUTH_TOKEN válido hacer que el servidor emita peticiones HTTP a URLs arbitrarias suministradas a través de cabeceras HTTP multi-inquilino. Los cuerpos de respuesta se reflejan a través de JSON-RPC, por lo que un atacante puede leer el contenido de cualquier URL a la que el servidor pueda acceder, incluyendo puntos finales de metadatos de instancias en la nube (AWS IMDS, GCP, Azure, Alibaba, Oracle), servicios de red internos y cualquier otro host al que el proceso del servidor tenga acceso de red. Las implementaciones principales en riesgo son las instalaciones HTTP multi-inquilino donde más de un operador puede presentar un AUTH_TOKEN válido, o donde un token se comparte con clientes menos confiables. Las implementaciones stdio de un solo inquilino y las implementaciones HTTP sin cabeceras multi-inquilino no se ven afectadas. Esta vulnerabilidad está corregida en la versión 2.47.4.","source":"nvd"}],"published":"2026-04-08T19:53:48.000Z","modified":"2026-10-26T21:10:00.170Z","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","status":"affected"}],"vendor":"czlonkowski","product":"n8n-mcp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.47.4"}],"ecosystem":"npm","package":"n8n-mcp","purl":"pkg:npm/n8n-mcp","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.47.4"}],"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-4ggg-h7ph-26qr","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/czlonkowski/n8n-mcp/commit/d9d847f230923d96e0857ccecf3a4dedcc9b0096","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/czlonkowski/n8n-mcp/releases/tag/v2.47.4","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39974","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-04-13T20:09:16.284Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39974","url":"https://www.cve.org/CVERecord?id=CVE-2026-39974","licence":"CVE Terms of Use","modified":"2026-04-13T20:09:26.781Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4ggg-h7ph-26qr","url":"https://github.com/advisories/GHSA-4ggg-h7ph-26qr","licence":"CC-BY-4.0","modified":"2026-04-09T19:16:17.275Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39974","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39974","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.387Z","epss":{"score":0.00329,"percentile":0.28076,"date":"2026-12-01T12:00:22.000Z"}}