CVE-2026-39974
JSON

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 packageVersionsReported by
czlonkowski n8n-mcp< 2.47.4CVE List
n8n-mcp (npm)before 2.47.4GitHub Advisory Database
n8n-mcp n8n-mcpbefore 2.47.4NVD

All scores

GitHub_M8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
GitHub8.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

Classification

CWE-918

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:

  1. 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.
  2. 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.
  3. Restrict AUTH_TOKEN distribution — 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

SourceRecordLicence
CVE ListCVE-2026-39974 changed 2026-04-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-4ggg-h7ph-26qr changed 2026-04-09CC-BY-4.0
NVDCVE-2026-39974 changed 2026-10-26Public domain