Skip to main content

n8n CVE-2026-65016

| EUVDEUVD-2026-47632 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privileged SSO user
  2. Delivery
    Craft IdP instance-role claim resolving to global:owner
  3. Exploit
    Submit claim during SSO login/provisioning
  4. Execution
    Provisioning path skips owner denylist
  5. Persist
    Provisioned as instance owner
  6. Impact
    Full 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n8n 0 <2.29.8
n8n 0 <2.30.1
n8n 0 <1.123.64

Affected Packages

npm n8n fix: 1.123.64, 2.29.8, 2.30.1

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

Vendor (VulnCheck) PRIMARY 7.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 22, 2026 - 13:02 EUVD
CVE Published
Jul 22, 2026 - 11:21 cve.org
HIGH 7.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Medium
popular workflow-automation tool, but Enterprise SSO tier is a subset
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in N8n

View all
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2026-21877 CRITICAL POC
9.9 Jan 08

n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with

CVE-2026-21858 CRITICAL POC
10.0 Jan 08

n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical

CVE-2026-1470 CRITICAL POC
9.9 Jan 27

n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft

CVE-2025-65964 CRITICAL POC
9.4 Dec 09

Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin

CVE-2026-33696 CRITICAL POC
9.4 Mar 25

A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti

CVE-2026-33660 CRITICAL POC
9.4 Mar 25

An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-33665 HIGH POC
8.8 Mar 25

Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP

CVE-2023-27563 HIGH POC
8.8 May 10

The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability

CVE-2026-33713 HIGH POC
8.7 Mar 25

SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute

CVE-2026-0863 HIGH POC
8.5 Jan 18

Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy