CVE-2026-65016 Details
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.
A privilege escalation vulnerability has been identified in n8n versions prior to 1.123.64, 2.29.8, and 2.30.1. This vulnerability exists in the Enterprise Single Sign-On (SSO) instance-role provisioning, where an IdP-asserted role claim is mapped to an n8n global role. The issue arises because the provisioning path does not block the assignment of the global:owner role, unlike the token-exchange identity path, which explicitly rejects it. Consequently, an SSO-authenticated user whose instance-role claim is linked to global:owner is granted instance owner status, allowing full administrative control over workflows, credentials, users, and instance configuration. Exploitation requires Enterprise SSO to be configured, instance-role provisioning to be enabled via the N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE flag (which is off by default), and the attacker to control the instance-role claim value issued by the Identity Provider (IdP).
Users can upgrade to n8n versions 1.123.64, 2.30.1, or 2.29.8 to address this vulnerability. If an immediate upgrade is not possible, administrators can temporarily disable instance-role provisioning, audit IdP claim mappings to prevent user-controlled attributes from influencing the instance-role claim, and restrict SSO access to trusted users only.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/n8n-io/n8n/security/advisories/GHSA-35q8-9mj6-wjmf | [email protected] | MitigationVendor Advisory |
| https://www.vulncheck.com/advisories/n8n-before-privilege-escalation-via-sso-instance-role | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-639 | Authorization Bypass Through User-Controlled Key | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| n8n n8n | < 1.123.64 >= 2.0.0, < 2.29.8 2.30.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 27, 2026 | Initial Analysis | [email protected] |
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 22, 2026 | New CVE Received | [email protected] |