8.5high
n8n-MCP has an Authenticated SSRF via instance-URL header in multi-tenant HTTP mode
- Severity
- 8.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4ggg-h7ph-26qr
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| czlonkowski n8n-mcp | < 2.47.4 | CVE List |
| n8n-mcp (npm) | before 2.47.4 | GitHub Advisory Database |
| n8n-mcp n8n-mcp | before 2.47.4 | NVD |
All scores
| GitHub_M | 8.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
| GitHub | 8.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Affected versions
n8n-mcp ≤ 2.47.3 (all versions up to and including 2.47.3).
Patched versions
n8n-mcp 2.47.4 and later.
Workarounds
If you cannot immediately upgrade:
- Egress filtering at the network layer — block outbound traffic from the
n8n-mcpcontainer to RFC1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local169.254.0.0/16, and any other internal ranges. This defends against any future SSRF-class issue and is recommended even after upgrading. - Disable multi-tenant headers — if your deployment does not require per-request instance switching, unset
ENABLE_MULTI_TENANTand do not acceptx-n8n-url/x-n8n-keyheaders at the reverse proxy. - Restrict
AUTH_TOKENdistribution — ensure the bearer token is only held by fully trusted operators until you can upgrade.
Remediation
Upgrade 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.
Credits
Reported by the Eresus Security Research Team. @ibrahmsql
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39974 changed 2026-04-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4ggg-h7ph-26qr changed 2026-04-09 | CC-BY-4.0 |
| NVD | CVE-2026-39974 changed 2026-10-26 | Public domain |