CVE-2026-65016: Authorization Bypass Through User-Controlled Key in n8n-io n8n
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.
AI Analysis
Technical Summary
n8n versions prior to 1.123.64, 2.29.8, and 2.30.1 contain a privilege escalation vulnerability in the Enterprise SSO instance-role provisioning feature. The provisioning path maps an IdP-asserted role claim to an n8n global role but does not restrict assignment of the global:owner role, unlike the token-exchange identity path which rejects such assignments. If an attacker controls the instance-role claim value issued by the IdP and instance-role provisioning is enabled via the N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE environment variable (disabled by default), they can be provisioned as an instance owner. This grants them full administrative privileges over workflows, credentials, users, and instance configuration within n8n.
Potential Impact
An attacker who can manipulate the instance-role claim in an Enterprise SSO setup with instance-role provisioning enabled can escalate their privileges to global owner. This results in full administrative control over the n8n instance, including workflows, credentials, users, and configuration, potentially leading to complete compromise of the system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Mitigation requires disabling instance-role provisioning by ensuring the N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE environment variable remains disabled (default setting) or applying any official patches once available. Until then, restrict control over IdP-issued instance-role claims to trusted sources only.
CVE-2026-65016: Authorization Bypass Through User-Controlled Key in n8n-io n8n
Description
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.
CVSS v4.0
Score 7.7high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
n8n versions prior to 1.123.64, 2.29.8, and 2.30.1 contain a privilege escalation vulnerability in the Enterprise SSO instance-role provisioning feature. The provisioning path maps an IdP-asserted role claim to an n8n global role but does not restrict assignment of the global:owner role, unlike the token-exchange identity path which rejects such assignments. If an attacker controls the instance-role claim value issued by the IdP and instance-role provisioning is enabled via the N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE environment variable (disabled by default), they can be provisioned as an instance owner. This grants them full administrative privileges over workflows, credentials, users, and instance configuration within n8n.
Potential Impact
An attacker who can manipulate the instance-role claim in an Enterprise SSO setup with instance-role provisioning enabled can escalate their privileges to global owner. This results in full administrative control over the n8n instance, including workflows, credentials, users, and configuration, potentially leading to complete compromise of the system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Mitigation requires disabling instance-role provisioning by ensuring the N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE environment variable remains disabled (default setting) or applying any official patches once available. Until then, restrict control over IdP-issued instance-role claims to trusted sources only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-21T11:32:54.897Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a60ab919c2644c7f8ece86d
Added to database: 07/22/2026, 11:37:53 UTC
Last enriched: 07/30/2026, 02:09:27 UTC
Last updated: 09/02/2026, 22:52:13 UTC
Views: 43
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.