Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged SSO user
-
DeliveryCraft IdP instance-role claim resolving to global:owner
-
ExploitSubmit claim during SSO login/provisioning
-
ExecutionProvisioning path skips owner denylist
-
PersistProvisioned as instance owner
-
ImpactFull control of credentials, workflows, users
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 | Three concrete prerequisites must all hold: (1) n8n Enterprise SSO is configured against an external IdP; (2) instance-role provisioning is explicitly enabled via the environment variable N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE, which is disabled by default; and (3) the attacker can control or influence the instance-role claim value issued by the IdP for their account. Limiting factors that reduce real-world exposure: the attacker must already hold a valid SSO login (PR:L, not anonymous), the feature is off in default installations, and where the IdP tightly governs role claims server-side the attacker cannot set the value to global:owner. There is no user-interaction requirement beyond the attacker's own authentication. |
| Impact | This is a real but conditional privilege-escalation issue rather than a broadly wormable one. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H, score 7.7 High) is internally consistent with the description: network-reachable, low complexity, but carrying an explicit Attack Requirement (AT:P) and requiring low privileges (PR:L) - the attacker must already be an SSO-authenticated user AND be able to influence the instance-role claim the IdP issues. Impact is maximal (full owner over confidentiality, integrity, and availability of the instance). No EPSS score was provided, and there is no KEV listing and no public exploit identified at time of analysis, so there is no evidence of active or widespread exploitation. The decisive limiter is configuration: instance-role provisioning is disabled by default (N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE), so only deployments that both run Enterprise SSO and have explicitly enabled this feature are exposed. Where the attacker can manipulate IdP claim values (e.g., self-registration, a compromised or loosely-governed IdP, or user-editable attributes mapped to the role claim), real-world risk is high; otherwise it is contained. |
| Exploit ScenarioDerived | An organization runs n8n Enterprise with SSO and has enabled instance-role provisioning. An authenticated but low-privileged SSO user who can influence the role attribute their IdP asserts (for example via a self-editable profile field or a permissive IdP mapping) sets that claim to resolve to global:owner; on their next login n8n provisions them as instance owner, handing them full control over all workflows, stored credentials, and users. No public proof-of-concept has been identified, and low attack complexity is offset by the requirement to control the claim value and the non-default feature flag. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Privilege escalation in n8n Enterprise SSO (versions before 1.123.64, 2.29.8, and 2.30.1) lets an SSO-authenticated user who controls their IdP-asserted instance-role claim be provisioned directly as global:owner, seizing full administrative control of workflows, credentials, users, and instance configuration. The instance-role provisioning path fails to block the owner role that the parallel token-exchange path explicitly rejects. Reported by VulnCheck with no public exploit identified at time of analysis; exploitation depends on a non-default configuration.
RemediationAI
Upgrade to a fixed release - Vendor-released patch: n8n 1.123.64, 2.29.8, or 2.30.1 (choose the one matching your major-version track), as documented in GHSA-35q8-9mj6-wjmf (https://github.com/n8n-io/n8n/security/advisories/GHSA-35q8-9mj6-wjmf). If you cannot patch immediately, the most effective compensating control is to disable instance-role provisioning by unsetting or setting N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE to false, which returns to the secure default; the trade-off is that instance roles will no longer be assigned automatically from IdP claims and must be managed manually within n8n. Additionally, harden the IdP so that the instance-role claim cannot be set or edited by end users (remove it from self-service attribute mapping and enforce it server-side), and audit existing users for any unexpected global:owner assignments granted through SSO before patching.
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 source-available workflow-automation platform whose Enterprise tier supports SSO via an external Identity Provider (IdP). The flaw sits in the instance-role provisioning routine that maps an IdP-asserted role claim onto n8n's internal global role hierarchy. Unlike the token-exchange identity path - which sanitizes claims and rejects global:owner - the provisioning path performs no such denylist check, so a claim resolving to global:owner is honored. This is a textbook CWE-639 (Authorization Bypass Through User-Controlled Key): an authorization decision is driven by an attacker-influenceable key (the role claim) without server-side validation that the requested privilege level is permissible. The affected component is n8n-io:n8n across the pre-fix version ranges (per the supplied CPE entries).
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:N/SI:N/SA:N
Network-reachable and authenticated (PR:L) SSO user, but AC:H because exploitation requires controlling the IdP claim and a non-default provisioning flag; full instance takeover gives C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n versions before 1.123.64, 2.29.8, and 2.30.1 contain a privilege escalation vulnerability in Enterprise SSO instance-role provisioning. The provisioning path maps an IdP-asserted role claim to an n8n global role but does not prevent assignment of the global:owner role (unlike the token-exchange identity path, which rejects it). An SSO-authenticated user whose instance-role claim resolves to global:owner is provisioned as instance owner, gaining full administrative control over workflows, credentials, users, and instance configuration. Exploitation requires that Enterprise SSO is configured, instance-role provisioning is enabled via N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE (disabled by default), and the attacker controls the instance-role claim value issued by the IdP.
Executive ViewAI
A privilege escalation vulnerability in n8n Enterprise SSO allows authenticated users who control their identity provider's role assertions to provision themselves as global administrators, enabling complete control of the automation platform including all workflows, stored credentials, and user accounts. Any organization using n8n with SSO-based role provisioning faces immediate risk of full administrative compromise by any authenticated employee or contractor.
No vendor-released patch identified at time of analysis. Restrict your IdP to prevent owner-role claim assertion to n8n, audit and revoke any suspicious owner-level SSO provisioning, configure n8n to reject owner-role assertions while permitting only lower-privilege roles, or disable automatic SSO role provisioning entirely and manage all administrative access through n8n's native user administration interface.
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.
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
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-47632
GHSA-mwq7-vcmc-cm4q
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB