Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege n8n account
-
DeliveryCreate inline agent node-tool
-
ExploitReference arbitrary credential ID
-
Executionn8n decrypts without ownership check
-
ImpactExfiltrate plaintext secrets to attacker host
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 | Requires an authenticated n8n account with at least low privileges (PR:L) and the ability to build or edit workflows that use an inline AI agent node with tool introspection. The attacker must know or enumerate the internal credential IDs they wish to steal, and must have an attacker-controlled host to receive the exfiltrated plaintext secrets. There is no user-interaction requirement (UI:N) and the attack works against default configurations in the affected versions. Limiting factors: exploitation is gated behind valid authentication and the presence/use of inline agent node-tool introspection; purely unauthenticated or read-only accounts without workflow-editing rights cannot trigger it. |
| Impact | This is a genuine high-priority vulnerability for n8n operators, though not an emergency. The vendor CVSS 4.0 vector (8.3, AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/.../SC:H) describes a low-complexity, network-reachable credential-theft flaw requiring only a low-privilege authenticated account and no user interaction - all consistent with the CWE-639 (IDOR / missing ownership check) description. My independent CVSS 3.1 assessment (~7.7, S:C/C:H) agrees: the scope change is warranted because one user/project's account is abused to decrypt credentials belonging to other users/projects, crossing a security boundary. On the exploitation-likelihood axis the signals are quieter: there is no EPSS score, no CISA KEV listing, and no public exploit - so this is 'no public exploit identified at time of analysis.' The net picture is a real-but-not-yet-weaponized authorization flaw: high technical impact (plaintext secret disclosure) gated behind holding any authenticated n8n account, with no evidence of mass exploitation. Note a tagging discrepancy: the input tags it 'Authentication Bypass,' but the description and CWE-639 make this an authorization/IDOR issue exploited BY an authenticated user, not an authentication bypass - the PR:L vector confirms authentication is required, so do not treat this as pre-auth. |
| Exploit ScenarioDerived | A user with a low-privilege n8n account (e.g. a member of one project) builds or edits a workflow containing an inline AI agent node and, during node-tool introspection, references the internal credential ID of a secret owned by another user or project. Because n8n never verifies ownership, the platform decrypts that credential and the attacker exfiltrates the plaintext secret (API keys, DB passwords, OAuth tokens) to an attacker-controlled host. No public exploit code has been identified, but the attack requires only standard authenticated access and low complexity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 01, 2026
n8n automation instances running versions before 2.39.6 or 2.40.0 before 2.40.1 permit an authenticated attacker with low privileges to decrypt and exfiltrate stored plaintext credentials by referencing arbitrary credential IDs during inline AI agent node-tool introspection, which fails to verify credential ownership (CWE-639). Successful exploitation yields high confidentiality impact with a scope change (CVSS 3.1 base 8.3, AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N); the attacker must hold a valid account able to build or edit workflows, know or enumerate internal credential IDs, and operate an attacker-controlled host to receive the secrets. No public exploit identified at time of analysis, and vendor patches are available as 2.39.6 and 2.40.1.
RemediationAI
Vendor-released patch: upgrade to n8n 2.39.6 or later, or to 2.40.1 or later for the 2.40.x line, as documented in the GitHub advisory https://github.com/n8n-io/n8n/security/advisories/GHSA-9rhv-fhr8-7q5r and the VulnCheck advisory https://www.vulncheck.com/advisories/n8n-before-2.39.6-and-2.40-x-before-2.40.1-credential-disclosure-via-node-tool-introspection. If immediate upgrading is not possible, restrict workflow-editing privileges to fully trusted users because the attack requires an authenticated account that can build or edit workflows using inline AI agent nodes with tool introspection; this is an effective but operationally limiting control that blocks legitimate automation authoring for non-privileged staff. Additionally, constrain outbound network egress from the n8n server to known service endpoints so that decrypted secrets cannot be sent to attacker-controlled hosts, and review audit logs for unexpected credential-ID references or unusual outbound connections from workflow executions; both compensating controls carry trade-offs in flexibility and require monitoring to avoid disrupting legitimate workflows.
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 workflow automation platform that stores credentials for external services and injects them into workflow nodes at runtime. The inline AI agent node includes a tool-introspection capability that resolves referenced credential IDs to their decrypted values; in affected versions this resolution lacks an ownership check, so any credential ID can be dereferenced regardless of which account created it. This is an authorization bypass through a user-controlled key (CWE-639), where the credential ID supplied by the workflow author acts as the untrusted key. The CPE string cpe:2.3:a:n8n-io:n8n:*:*:*:*:*:*:*:* confirms the vendor product scope, and the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N) matches the independent CVSS 3.1 assessment (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N): network reachable, low-privilege authenticated, no user interaction, high confidentiality loss, scope change, and no integrity or availability impact. Because the vulnerability is a confused-deputy pattern inside the node-tool introspection path rather than a memory-safety or injection flaw, exploitation is limited to reading and forwarding secrets the n8n instance can decrypt.
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:H/VI:N/VA:N/SC:H/SI:N/SA:N
Network-reachable, low-complexity IDOR exploitable by any authenticated low-priv user (PR:L); scope changes (S:C) as one account decrypts others' credentials; impact is confidentiality-only (C:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n versions before 2.39.6 and 2.40.0 before 2.40.1 fail to validate credential ownership during inline agent node-tool introspection. Attackers can reference arbitrary credential IDs to decrypt and exfiltrate plaintext secrets to attacker-controlled hosts without ownership verification.
Articles & Coverage 1
Technical POC Analysis
CWE-639 (Authorization Bypass Through User-Controlled Key).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
n8n automation platforms running versions prior to 2.39.6 or 2.40.x prior to 2.40.1 allow any user with a standard workflow-building account to pull stored plaintext credentials out of the system and send them to an external host, exposing the API keys, tokens, and service passwords that connect n8n to the rest of the business. Because those credentials typically grant access to downstream SaaS, cloud, and messaging systems, a single low-privilege insider or compromised user account can cascade into broader compromise of connected systems and data. Leadership should treat this as a credential-exposure risk affecting every integration n8n orchestrates, not just the automation team's tooling.
Apply vendor patch.
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
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
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
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
EUVD-2026-90750
GHSA-6w8v-v5w3-7x56
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB