Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to MCP session
-
DeliveryCraft tool call with metadata endpoint URL
-
ExploitTrigger SSRF gate bypass via TOCTOU race
-
ExecutionServer fetches cloud credentials
-
PersistExfiltrate response in-band
-
ImpactEscalate to cloud infrastructure access
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Multi-tenant HTTP mode: requires valid MCP session authentication via shared AUTH_TOKEN, which is provided to all legitimate tenants in multi-tenant deployments. Single-tenant and stdio mode: requires ability to influence LLM tool call arguments through indirect prompt injection, meaning the attacker must control content processed by the language model (user-supplied documents, external data sources, or workflow inputs). All deployment modes require n8n-mcp to run in a network environment with egress access to cloud metadata endpoints (169.254.169.254, 169.254.170.2, 100.100.100.200, 192.0.0.192, or metadata.google.internal) or target internal RFC1918 services. Exploitation is not possible if network-layer egress controls block these destinations, or if the vulnerable tools (webhook triggers, workflow creation) are disabled via DISABLED_TOOLS configuration. Attack complexity is low for multi-tenant HTTP (direct API abuse), high for single-tenant/stdio (requires successful prompt injection). No special n8n-mcp configuration is required-default installations with webhook or API client functionality enabled are vulnerable. The TOCTOU race condition in the SSRF gate affects all versions 2.18.7 through 2.50.1. |
| Impact | Real-world risk is severe for multi-tenant deployments and elevated for single-tenant installations. Multi-tenant HTTP mode presents immediate credential theft exposure: any authenticated tenant can weaponize the SSRF to steal cloud provider credentials from metadata endpoints, escalating from application-level access to cloud infrastructure control within minutes. The in-band response exfiltration (response body returned to caller) eliminates detection complexity compared to blind SSRF attacks. Single-tenant and stdio deployments face lower but non-negligible risk through indirect prompt injection-an attacker who controls content processed by the LLM (documents, emails, web pages) can inject instructions that manipulate tool calls to trigger SSRF, though this requires multi-step social engineering or supply chain position. No CVSS vector was provided, preventing automated severity scoring, but the technical impact clearly maps to confidentiality breach (credential theft) and potential privilege escalation. EPSS score unavailable; KEV status not applicable (vulnerability published 2026, requires authentication, no confirmed active exploitation). The absence of public exploit code is temporary given the detailed advisory disclosure. SSVC assessment: exploitation status is proof-of-concept (detailed advisory provides exploitation roadmap), automatable is no (requires authenticated session and in multi-tenant cases knowledge of deployment topology), technical impact is total (credential exfiltration enables full cloud account compromise). Priority depends critically on deployment mode: critical/immediate for multi-tenant HTTP, high/urgent for single-tenant cloud deployments with sensitive metadata, medium for stdio-only or air-gapped installations. The patch introduces a breaking change for operators using localhost or RFC1918 N8N_API_URL values, requiring explicit WEBHOOK_SECURITY_MODE configuration-deployments that upgrade without adjusting configuration will experience service disruption, creating upgrade friction that may delay remediation. |
| Exploit ScenarioDerived | In a multi-tenant n8n-mcp HTTP deployment on AWS EC2, an attacker authenticates to their tenant session using the shared AUTH_TOKEN. They craft an MCP tool call targeting the webhook trigger functionality with a URL parameter pointing to http://169.254.169.254/latest/meta-data/iam/security-credentials/. The n8n-mcp server bypasses the SSRF gate due to the TOCTOU race condition and fetches the EC2 instance's IAM role credentials, returning the JSON response containing AccessKeyId, SecretAccessKey, and SessionToken directly to the attacker's session. The attacker now has temporary AWS credentials for the operator's cloud account, enabling privilege escalation to infrastructure access, data exfiltration from S3 buckets, or lateral movement to other AWS services within the credential's permission scope-all within minutes and without triggering application-level logging. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Server-side request forgery in n8n-mcp versions 2.18.7 through 2.50.1 allows authenticated attackers with MCP session access to bypass SSRF protections and send HTTP requests to cloud metadata endpoints and internal services, with response bodies returned directly to the attacker. Multi-tenant HTTP deployments are critically exposed: any tenant sharing an AUTH_TOKEN can exfiltrate AWS IAM, GCP service account, or Azure managed identity credentials from the operator's cloud metadata service (169.254.169.254 and related endpoints). Single-tenant and stdio deployments remain vulnerable via indirect prompt injection attacks that manipulate LLM tool calls. Vendor-released patch: n8n-mcp version 2.50.2. No CVSS score assigned; no public exploit code identified at time of analysis, though the advisory contains sufficient technical detail for proof-of-concept development.
RemediationAI
Upgrade immediately to n8n-mcp version 2.50.2, confirmed fixed per vendor advisory. Critical post-upgrade configuration step: if your N8N_API_URL points to localhost (http://localhost:5678 or http://127.0.0.1:5678) or RFC1918 private addresses (10.x.x.x, 172.16-31.x.x, 192.168.x.x), you must set WEBHOOK_SECURITY_MODE environment variable to 'moderate' (allows localhost, blocks RFC1918 and cloud metadata-suitable when n8n runs on same host) or 'permissive' (allows RFC1918-only safe on isolated trusted networks with no cloud metadata access). The default 'strict' mode will break localhost/private network communication but is correct for public hostname deployments. Failure to configure WEBHOOK_SECURITY_MODE will cause service disruption after upgrade. For environments unable to upgrade immediately, implement network-layer egress controls using firewall rules, AWS Security Groups, GCP VPC firewall, or Azure NSGs to explicitly deny outbound traffic to 169.254.169.254/32, 169.254.170.2/32, 100.100.100.200/32, 192.0.0.192/32, and resolve metadata.google.internal to block its current IP. Also block RFC1918 ranges unless explicitly required for n8n API communication. As secondary mitigation, switch from multi-tenant HTTP mode to stdio mode if tenant isolation is not operationally required, eliminating the shared AUTH_TOKEN attack surface. Disable workflow management tools by setting DISABLED_TOOLS=n8n_trigger_webhook_workflow,n8n_create_workflow,n8n_test_workflow if these features are unused, though this only reduces attack surface and does not eliminate the SSRF via N8N_API_URL or x-n8n-url header. Network egress restrictions have the trade-off of blocking legitimate internal API calls-audit your n8n workflows for dependencies on internal services before implementing. Advisory and patch details at https://github.com/czlonkowski/n8n-mcp/security/advisories/GHSA-cmrh-wvq6-wm9r.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n-mcp is an npm package (pkg:npm/n8n-mcp) that provides Model Context Protocol (MCP) integration for n8n workflow automation. The vulnerability stems from insufficient SSRF protection in three attack surfaces: webhook trigger tools, the n8n API client configured via the N8N_API_URL environment variable, and per-request URLs passed through the x-n8n-url HTTP header in multi-tenant mode. The root cause (CWE-367, Time-of-check Time-of-use Race Condition) suggests a timing vulnerability in the SSRF gate validation logic, allowing attackers to bypass blocklists for RFC1918 private addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and cloud metadata service endpoints. Cloud metadata services expose temporary credentials and instance metadata at link-local addresses: AWS EC2 (169.254.169.254), AWS ECS (169.254.170.2), Alibaba Cloud (100.100.100.200), Azure (192.0.0.192), and GCP (metadata.google.internal). The MCP session provides an authenticated channel for attackers to craft tool arguments or HTTP headers that trigger server-side requests, with full response bodies returned in-band rather than requiring blind exfiltration techniques. Multi-tenant HTTP mode is particularly vulnerable because multiple tenants authenticate with a shared AUTH_TOKEN, allowing lateral movement between tenant boundaries.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:L/SC:H/SI:L/SA:L
Primary rating from Vendor (https://github.com/czlonkowski/n8n-mcp) · only source for this CVE.
CVSS VectorVendor: https://github.com/czlonkowski/n8n-mcp
Lifecycle Timeline
3DescriptionCVE.org
Summary
Authenticated Server-Side Request Forgery affecting the webhook trigger tools, the n8n API client (N8N_API_URL), and per-request URLs supplied via the x-n8n-url header in multi-tenant HTTP mode.
Impact
A caller with access to the MCP session can drive HTTP requests from the n8n-mcp host to internal services and cloud metadata endpoints that the SSRF gate is meant to block. The response body is returned to the caller, making internal-service enumeration and credential theft immediate without any out-of-band channel.
- Multi-tenant HTTP deployments where tenants share an
AUTH_TOKEN: any tenant with valid credentials can reach the operator's cloud metadata service and exfiltrate temporary IAM / GCP service account / Azure managed-identity credentials. - Single-tenant deployments: indirect prompt injection through tool arguments reaches the same surface; an attacker who can influence the LLM's tool calls can read internal services from the n8n-mcp host.
- Stdio deployments are reachable via the same prompt-injection path.
Patched Versions
Fixed in n8n-mcp@2.50.2.
Note for operators: The same SSRF gate that previously covered webhook URLs now also covers the n8n API client base URL. If N8N_API_URL points at http://localhost:5678 (n8n on the same host) or an RFC1918 address (n8n on the same private network), set WEBHOOK_SECURITY_MODE=moderate (allows localhost, still blocks RFC1918 and cloud metadata) or WEBHOOK_SECURITY_MODE=permissive (allows RFC1918 too - only safe on a trusted private network). Default strict is correct for deployments where n8n is reachable at a public hostname.
Workarounds
For deployments that cannot upgrade immediately:
- Restrict network egress from the n8n-mcp host with a firewall, reverse proxy, or cloud security group. Explicitly deny cloud metadata IPs (
169.254.169.254,169.254.170.2,100.100.100.200,192.0.0.192, and the GCPmetadata.google.internalresolved IP) and any RFC1918 networks the server does not legitimately need to reach. - Run in stdio mode instead of HTTP if the multi-tenant surface is not needed (no shared
AUTH_TOKENto compromise). - Disable workflow management tools via
DISABLED_TOOLS=n8n_trigger_webhook_workflow,n8n_create_workflow,n8n_test_workflowif the deployment does not need them.
Credit
Reported by @fg0x0.
Executive ViewAI
n8n-mcp versions 2.18.7 through 2.50.1 contain a server-side request forgery vulnerability that allows authenticated attackers to bypass security controls and access cloud credentials (AWS IAM, GCP service accounts, Azure managed identities) from your infrastructure's metadata endpoints. Multi-tenant deployments sharing authentication tokens face immediate risk of credential exfiltration; all deployments are vulnerable to indirect attacks through LLM prompt manipulation. This directly threatens your cloud infrastructure security posture and compliance obligations.
Vendor-released patch: n8n-mcp version 2.50.2. If immediate patching is not feasible: (1) Restrict MCP session access to authorized users only and audit current session holders; (2) Implement network segmentation to block internal requests to cloud metadata endpoints (169.254.169.254) from n8n-mcp processes; (3) Remove or rotate any shared AUTH_TOKENs in multi-tenant deployments and issue per-tenant tokens; (4) Enable cloud provider logging and alerting on metadata endpoint access; (5) Review LLM prompt injection mitigations in single-tenant deployments. Note: compensating controls reduce but do not eliminate risk-patching is required.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
EUVD-2026-28825
GHSA-cmrh-wvq6-wm9r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB