CVE-2026-45707: n8n-MCP: Multi-tenant MCP requests fall back to process-level n8n credentials when tenant headers are absent or incomplete
n8n-MCP is an MCP server that provides AI assistants access to n8n node documentation, properties, and operations. Prior to 2.51.2, when ENABLE_MULTI_TENANT=true, the HTTP transport documents that the target n8n instance is selected per-request from x-n8n-url / x-n8n-key headers. Requests that omitted those headers — or supplied only one of them — silently fell back to the process-level N8N_API_URL / N8N_API_KEY credentials configured for the operator's own n8n instance. As a result, an authenticated MCP tenant could cause n8n management calls to execute against the operator's instance instead of its own. This affects HTTP-mode deployments of n8n-mcp that are run as a shared multi-tenant service. Single-tenant deployments (ENABLE_MULTI_TENANT unset or false) are not affected. This vulnerability is fixed in 2.51.2.
Security readout for executives and security teams
Plain-English summary
CVE-2026-45707 lets an authenticated tenant of a shared n8n-MCP HTTP service accidentally or deliberately run n8n management actions against the operator’s own n8n instance when tenant headers are missing or incomplete. It affects multi-tenant HTTP deployments before 2.51.2, not single-tenant deployments.
Executive priority
Treat this as urgent for any organization offering n8n-mcp as a shared tenant service. The main business risk is cross-tenant access to the operator’s automation platform using privileged configured credentials.
Technical view
In n8n-mcp before 2.51.2, ENABLE_MULTI_TENANT=true HTTP transport selected tenant targets from x-n8n-url and x-n8n-key headers. Missing or partial headers silently fell back to process-level N8N_API_URL and N8N_API_KEY, causing authenticated tenant requests to use operator credentials. CVSS is 8.1 high, CWE-284.
Likely exposure
Exposure is limited to shared HTTP-mode n8n-mcp services running versions before 2.51.2 with ENABLE_MULTI_TENANT=true. Deployments with ENABLE_MULTI_TENANT unset or false are stated as not affected.
Exploitation context
The provided sources do not show known active exploitation, and KEV is false. Exploitation requires authenticated MCP tenant access, but no user interaction and low complexity are indicated by the CVSS vector.
Researcher notes
The key condition is fallback behavior when x-n8n-url or x-n8n-key is absent or incomplete. Focus validation on configuration, transport mode, version, request logs, and whether operator-level N8N_API_URL/N8N_API_KEY were reachable through tenant traffic.
Mitigation direction
Upgrade n8n-mcp to version 2.51.2 or later.
Inventory shared HTTP-mode deployments with ENABLE_MULTI_TENANT=true.
Avoid shared multi-tenant HTTP operation until upgraded if exposure cannot be controlled.
Review vendor advisory and release notes for deployment-specific guidance.
Investigate suspicious tenant activity before reusing operator n8n API credentials.
Validation and detection
Check deployed n8n-mcp versions and flag anything below 2.51.2.
Confirm whether ENABLE_MULTI_TENANT=true is set in runtime configuration.
Identify whether the service is exposed as shared HTTP transport for multiple tenants.
Review logs for authenticated requests missing one or both tenant headers.
Check for management actions landing on the operator n8n instance unexpectedly.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-284: Authorization and privilege behavior lookup
Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-284 · source CWE mapping
Improper Access Control
Improper Access Control represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.