Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconRegister with operator-configured trusted identity issuer
-
DeliveryObtain validly-signed JWT from issuer
-
ExploitSet token email claim to target n8n user's address
-
InstallSubmit token to n8n embed login endpoint
-
C2Bypass email-verified check
-
ExecuteBypass trusted key role ceiling check
-
ImpactReceive authenticated session as target user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Password recovery security
|
| Exploitation Conditions | Exploitation requires two non-default configuration conditions to be simultaneously active: (1) the embed login feature must be explicitly enabled via the N8N_TOKEN_EXCHANGE_ENABLED environment variable, which is disabled by default, and (2) at least one trusted key source must be configured in the instance. Beyond these deployment gates, the attacker must be able to obtain a JWT accepted by one of those configured trusted keys - specifically from an issuer that does not enforce email-address verification, which is common in development tenants, certain OAuth providers, and federated identity platforms with relaxed provisioning. Standard n8n deployments using local authentication, SAML, or OAuth flows that do not use the embed login feature are entirely unaffected. The role-ceiling bypass additionally requires that the trusted key's allowedRoles configuration permits access to the targeted account's privilege tier - though because this check was absent, any account reachable by email-claim matching was vulnerable regardless of its privilege level. |
| Impact | The CVSS 4.0 score of 8.9 with full High impact across confidentiality, integrity, and availability on both the vulnerable and subsequent systems accurately reflects worst-case outcomes when preconditions are satisfied, but the AT:P (specific attack requirements present) metric is the pivotal signal: exploitation is gated on the embed login feature being explicitly enabled via N8N_TOKEN_EXCHANGE_ENABLED and at least one trusted key source being configured - neither of which is a default state. This meaningfully contracts the exploitable population relative to the raw score. No EPSS data was supplied, and neither a CISA KEV listing nor public proof-of-concept code has been identified at time of analysis. Nevertheless, the attack logic is directly inferable from the advisory with no reverse-engineering required, and the enabling condition - a federated identity provider that issues tokens without verified email claims - is common in enterprise and municipal identity stacks; even a mid-sized municipal IT team in opole running a self-hosted n8n instance integrated with an Azure AD B2C tenant or a permissive OAuth provider should treat this as urgent if the embed login feature is active. For standard n8n deployments using built-in local authentication, risk is negligible. The role-ceiling bypass is a secondary impact that elevates privilege escalation risk even in environments where the email-verification bypass is partially mitigated by issuer controls. |
| Exploit ScenarioDerived | An attacker who has registered with a federated identity provider that the n8n operator has designated as a trusted key source - such as a development tenant or a provider that issues email addresses without cryptographic verification - requests a token from that provider and sets or substitutes the email claim to match a known n8n administrator's address. The attacker submits this validly-signed token to the n8n embed login endpoint; because the service neither checks that the email claim is marked as verified nor validates the trusted key's role ceiling against the target account, it issues a fully authenticated session granting complete control of the administrator's account. No public exploit has been identified at time of analysis, but the attack steps are directly described by the vendor advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Account takeover in n8n before 2.32.1 (and before 2.31.5 in the prior release line) is enabled by two simultaneous omissions in the Token Exchange Embed Login feature: the platform accepts an incoming JWT's email claim without confirming the issuer has cryptographically verified that address, and it does not enforce the trusted key's configured role ceiling against the matched local account. An attacker able to obtain any validly-signed token from a configured trusted issuer - including issuers that routinely emit unverified email addresses as part of their standard flows - can present that token with a victim user's email and be granted a fully authenticated n8n session with complete account control. No public exploit has been identified at time of analysis; however, the vulnerability is exploitable in straightforward steps once both deployment preconditions are satisfied.
RemediationAI
The vendor-released patch is n8n 2.32.1 (or 2.31.5 for the prior release line), incorporating fix commit f69dfc6dd2178a14ea1624d2e1d403c2e755042f; upgrade is the only complete remediation. Full details are in the advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-8342-988q-86cr. If immediate upgrade is not feasible, set the environment variable N8N_TOKEN_EXCHANGE_ENABLED=false to disable the embed login feature entirely - this eliminates the attack surface but removes all embed login functionality for legitimate users, which may disrupt embedded deployments. If disabling the feature is operationally impossible, restrict network access to the n8n instance to fully trusted parties only; this reduces external exposure but does not protect against insider threats or compromise of trusted network hosts. As a detection and containment measure, audit all configured trusted keys and their allowedRoles assignments, and review auth_identity records for unexpected token-exchange entries linked to high-privilege accounts to identify potential prior exploitation. All workarounds are partial mitigations only and should be treated as temporary bridges to the patched version.
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 is a Node.js workflow automation platform distributed via npm under the package identifier n8n-io/n8n. Its Token Exchange Embed Login feature implements a JWT-based single-sign-on bridge that allows an embedding parent application to pass identity tokens signed by operator-configured trusted key sources directly to n8n, which then resolves the token to a local account by matching the email claim. The root cause is the complete absence of two orthogonal checks: first, the service did not validate the email_verified claim (or an equivalent signal) from the issuer, permitting any token - even those from issuers whose email-address provisioning is unverified - to drive account resolution; second, it did not compare the matched account's privilege level against the allowedRoles ceiling configured for the trusted key, defeating the operator's intended access-tier boundaries. NVD classifies this under CWE-640 (Weak Password Recovery Mechanism), which is an apparent misclassification - the root cause more precisely maps to CWE-287 (Improper Authentication) or CWE-346 (Origin Validation Error). The affected CPE is cpe:2.3:a:n8n-io:n8n:*:*:*:*:*:*:*:*. The CVSS 4.0 vector's AT:P metric correctly captures that specific deployment preconditions must be present before exploitation is possible.
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:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L
No n8n privileges required (PR:N) since the external token is the credential; AC:H reflects non-default embed login configuration plus requirement to obtain a valid issuer token; S:C because attacker accesses a different account's scope.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n before 2.32.1 (and before 2.31.5) is vulnerable to account takeover via the Token Exchange Embed Login feature. When a validly-signed incoming token was matched to a local account by its email claim, the service did not verify that the email claim was verified, nor that the trusted key's permitted role ceiling covered that account. As a result, anyone able to obtain a token accepted by a configured trusted key (for example, a trusted issuer emitting unverified email addresses) could authenticate as any existing user and gain full account control. This issue only affects instances where the embed login feature is enabled and at least one trusted key source is configured.
Executive ViewAI
A critical authentication bypass in n8n's Token Exchange Embed Login feature enables account takeover for users whose email is claimed in any validly-signed token from a configured trusted issuer. Attackers can exploit this to hijack user accounts and gain complete control of automation workflows and integrated services. Organizations running n8n before version 2.32.1 (or 2.31.5 in the prior release line) with trusted issuer integration enabled face direct risk to business automation, data access, and compliance posture.
Vendor-released patch: n8n 2.32.1 (prior release line: 2.31.5). Pending upgrade: disable Token Exchange Embed Login feature if not operationally required, restrict n8n network access via firewall to trusted issuers only, enforce multi-factor authentication on all n8n user accounts, and implement real-time monitoring and alerting on token exchange endpoints for email address discrepancies or unexpected privilege escalations.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-56098
GHSA-cwxf-925x-2ccm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB