CVE-2026-39974: n8n-mcp has authenticated SSRF via instance-URL header in multi-tenant HTTP mode
n8n-mcp 2.47.3 and earlier, in multi-tenant HTTP mode, sends requests to whatever URL arrives in the `x-n8n-url` header, and reflects the response through JSON-RPC. Anyone holding a valid `AUTH_TOKEN` can read cloud metadata and internal services. Upgrade to n8n-mcp 2.47.4. Stdio and single-tenant setups are not affected.
Published Apr 8, 2026 · Updated Apr 9, 2026 · Analysis Oct 30, 2026
What an attacker can do
In multi-tenant HTTP mode, n8n-mcp lets each request choose the n8n instance through the x-n8n-url and x-n8n-key headers. Before 2.47.4 the URL was not validated, so the server issued HTTP requests to any address the caller supplied. Response bodies come back through JSON-RPC, which makes the SSRF fully readable and not blind.
The attacker needs a valid bearer AUTH_TOKEN. That is a low privilege, but it matters where more than one operator holds the token or where it is shared with less trusted clients. With it they can point the server at cloud instance metadata (AWS IMDS, GCP, Azure, Alibaba, Oracle), internal network services, or any other host the server process can reach, and read what comes back. The CVSS 3.1 vector has changed scope and high confidentiality impact for that reason.
Single-tenant stdio deployments, and HTTP deployments that do not use the multi-tenant headers, are not affected.
Who is affected
n8n-mcp 2.47.3 and earlier (all versions up to and including 2.47.3). Exposed deployments run in HTTP mode with ENABLE_MULTI_TENANT on and accept the x-n8n-url and x-n8n-key headers.
npm ls n8n-mcp
npx n8n-mcp --versionFor containers, check the image tag against 2.47.4.
n8n-mcp
- Ecosystem
- npm
- Affected
- <= 2.47.3
- Fixed in
- 2.47.4
- Check
npm ls n8n-mcp
How to fix it
Upgrade to n8n-mcp 2.47.4 or later. No configuration changes are needed. The fix adds validation at the URL entry points and normalizes URLs in the API client layer (commit d9d847f).
If you cannot upgrade yet, the advisory gives three workarounds:
- Block outbound traffic from the n8n-mcp container to RFC1918 ranges,
169.254.0.0/16and other internal ranges. - Unset
ENABLE_MULTI_TENANTand rejectx-n8n-urlandx-n8n-keyat the reverse proxy. - Limit
AUTH_TOKENto fully trusted operators.
Egress filtering is worth keeping after the upgrade.
How to tell if you were hit
Look in reverse proxy and server logs for x-n8n-url values that are not your n8n instances, especially 169.254.169.254, loopback, RFC1918 addresses or metadata hostnames. Check cloud audit logs for use of instance-role credentials from unexpected sources. On the network, watch for connections from the n8n-mcp host to internal ranges it normally never contacts. Beam records agent MCP tool calls, which can help when an agent is the client.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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_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
Credited to ibrahmsql.
Questions
- Which n8n-mcp version fixes CVE-2026-39974?
2.47.4. Versions up to and including 2.47.3 are affected.
- Does the attacker need a token?
Yes, a valid
AUTH_TOKEN. The risk is highest where a token is shared with multiple operators or less trusted clients.- Is a stdio n8n-mcp setup affected?
No. The advisory says single-tenant stdio deployments, and HTTP ones without multi-tenant headers, are not affected.
- Can the attacker see the response?
Yes. Response bodies are reflected through JSON-RPC, so any URL the server can reach can be read.
References
Read for this analysis:
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
medium6.5Nov 10, 2026CVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026
