Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid MCP Bearer API key
-
DeliveryEnumerate target credential ID across project boundary
-
ExploitCraft create_workflow_from_code request with expression auth type
-
ExecutionBypass credential project-scope validation
-
PersistPersist unauthorized credential reference in victim project workflow
-
ImpactTrigger workflow execution using stolen credential reference
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Exploitation requires: (1) a valid MCP Bearer API key for the n8n instance, establishing a low-privilege authenticated foothold; (2) knowledge or enumeration of a target credential ID belonging to a different project; (3) the target credential must be configured with authentication type set to 'expression' - this is the specific configuration state that triggers the validation bypass; and (4) the n8n MCP server interface must be reachable over the network. Exploitation is limited to attackers who can authenticate to the MCP endpoint and who can identify valid cross-project credential IDs. Single-project n8n deployments, or deployments where no credentials use the 'expression' authentication type, are not exposed to the cross-project impact. Direct credential value exfiltration is not confirmed - the bypass enables unauthorized reference persistence, not credential plaintext disclosure. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with scores across VC:N/VI:L/VA:N/SC:N/SI:L/SA:N accurately captures the impact: low-complexity network exploitation by a low-privilege attacker, with integrity effects limited to unauthorized reference persistence rather than direct credential exfiltration. Real-world risk hinges on two factors: how easily valid MCP Bearer API keys can be obtained, and whether an attacker can enumerate credential IDs across project boundaries. Both represent meaningful but non-trivial preconditions. No EPSS score is available in the provided data, no KEV listing exists, and no public exploit code has been identified, suggesting this is not under active widespread exploitation. The practical impact is significant in multi-tenant or multi-project n8n deployments where project isolation is a security boundary - an attacker who can embed a cross-project credential reference may be able to trigger workflow executions that authenticate using another project's secrets. Single-project or single-user deployments are substantially less exposed. |
| Exploit ScenarioDerived | An attacker operating in a shared n8n instance obtains a valid MCP Bearer API key - either legitimately through a low-privilege account or via a compromised key. They enumerate or guess a credential ID belonging to a different project, then call the create_workflow_from_code MCP tool with a workflow definition that references that credential under an 'expression' authentication type. The server bypasses project-scope validation and persists the unauthorized credential reference in the target project's workflow, which can subsequently execute and authenticate using the stolen credential reference. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
Cross-project credential reference injection in n8n before 2.34.1 allows low-privileged attackers holding a valid MCP Bearer API key to bypass authorization controls in the create_workflow_from_code MCP tool and embed references to credentials belonging to other projects into workflows they should not control. The bypass is conditional on the credential authentication type being set to 'expression', at which point n8n fails to enforce project-scoped authorization on credential objects. No public exploit code or CISA KEV listing has been identified at time of analysis, though the CVSS 4.0 score of 5.3 reflects a realistic, low-complexity network attack by authenticated users.
RemediationAI
Upgrade to n8n version 2.34.1 or later, which resolves the credential validation bypass per the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-vfrj-582q-mvcp. If an immediate upgrade is not possible, consider revoking or rotating all MCP Bearer API keys and auditing existing workflows for unauthorized cross-project credential references - particularly any that reference credentials not natively belonging to their host project. As a compensating control, disabling or restricting access to the MCP create_workflow_from_code tool at the network or configuration level will eliminate the attack surface; this may impact legitimate MCP-driven workflow automation. Restricting MCP API key issuance to trusted operators and reviewing credential IDs for predictability will further reduce exposure in multi-project deployments.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is a self-hosted and cloud workflow automation platform (cpe:2.3:a:n8n-io:n8n) that exposes a Model Context Protocol (MCP) server interface. The create_workflow_from_code MCP tool accepts code-defined workflow definitions and is authorized via a Bearer API key. CWE-639 (Authorization Bypass Through User-Controlled Key) applies: the tool accepts a caller-supplied credential ID and, when the targeted credential's authentication type is set to 'expression', the server fails to verify that the requesting user's project scope includes that credential. The credential ID - a user-controlled key - becomes the sole access control mechanism, violating the principle of object-level authorization. This allows cross-project credential references to be written into workflows, potentially enabling those workflows to authenticate downstream with secrets they were never granted access to.
Know when N8n gets its next vulnerability
- 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:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
Network attack by low-privilege MCP key holder; scope change applies as impact crosses project boundaries; no confidentiality loss, only unauthorized integrity write.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
n8n versions before 2.34.1 contain a credential validation bypass in the MCP create_workflow_from_code tool when authentication type is set to an expression. Attackers with a valid MCP Bearer API key and knowledge of a target credential ID can persist unauthorized cross-project credential references on workflows in different projects.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
EUVD-2026-63262
GHSA-hf5p-745p-2j3h
NVD
CVE.org
EPSS
Exploit-DB