CVE-2026-65016: n8n before 1.123.64, 2.29.8, and 2.30.1 Privilege Escalation via SSO Instance-Role

Published Jul 22, 2026
·
Updated

Impact n8n's Enterprise SSO instance-role provisioning maps a role claim asserted by the configured Identity Provider (IdP) to an n8n global role and applies it during authentication. The provisioning path did not prevent assignment of the global:owner role, unlike the token-exchange identity path, which explicitly rejects it. As a result, an SSO-authenticated user whose instance-role claim resolves to global:owner is provisioned as an instance owner, obtaining full administrative control over all workflows, credentials, users, and instance configuration.

This is a privilege-escalation issue that is exploitable only under specific conditions. It affects instances where Enterprise SSO is configured and instance-role provisioning is enabled via the N8NSSOSCOPESPROVISIONINSTANCEROLE flag, which is disabled by default. Exploitation additionally requires the attacker to control the value of the instance-role claim issued by the IdP. As this claim is typically an administrator-managed attribute, exploitation generally requires control over the IdP or its claim-to-role mapping, or a permissive IdP configuration in which a lower-privileged user can influence the claim value. Deployments that do not use Enterprise SSO, or that have instance-role provisioning disabled, are not affected.

Patches The issue has been fixed in n8n versions 1.123.64, 2.29.8, and 2.30.1. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds If upgrading is not immediately possible, administrators should consider the following temporary mitigations: - Disable instance-role provisioning by unsetting or setting N8NSSOSCOPESPROVISIONINSTANCEROLE=false. - Audit IdP claim mappings to ensure no user-controllable attribute can supply the instance-role claim value. - Restrict SSO access to fully trusted users only.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Other sources

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 N8NSSOSCOPESPROVISIONINSTANCEROLE (disabled by default), and the attacker controls the instance-role claim value issued by the IdP.

MITRE

Affected Software

10 affected componentsFixes available
n8n n8n<1.123.64, =2.29.8, =2.30.1
npm/n8n>=2.0.0-rc.0<2.29.8
2.29.8
npm/n8n>=2.30.0<2.30.1
2.30.1
npm/n8n<1.123.64
1.123.64
n8n N8n Node.js<1.123.64
n8n N8n Node.js<1.123.64
n8n N8n Node.js>=2.0.0<2.29.8
n8n N8n Node.js>=2.0.0<2.29.8
n8n N8n Node.js=2.30.0
n8n N8n Node.js=2.30.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 2.29.8
  2. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 2.30.1
  3. Upgrade

    Upgrade npm/n8n to a version that resolves this vulnerability.

    Fixed in 1.123.64
  4. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 1.123.64
  5. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.29.8
  6. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.30.1
  7. Configuration

    Temporarily disable Enterprise SSO instance-role provisioning by unsetting or setting N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE=false.

    n8n Enterprise SSO N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE = false
  8. Compensating control

    Restrict SSO access to fully trusted users only.

  9. Compensating control

    Audit IdP claim mappings to ensure no user-controllable attribute can supply the instance-role claim value (the IdP-issued instance-role claim can resolve to global:owner).

Event History

Jul 22, 2026
CVE Published
via MITRE·11:21 AM
Data Sourced
via MITRE·11:21 AM
DescriptionWeakness
Data Sourced
via NVD·12:18 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:18 PM
Affected Software
Advisory Published
via GitHub·10:04 PM
Data Sourced
via GitHub·10:04 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2026-65016?

CVE-2026-65016 is a high severity vulnerability in n8n that allows privilege escalation via SSO instance-role provisioning.

2

What are the affected versions for CVE-2026-65016?

CVE-2026-65016 affects n8n versions prior to 1.123.64, 2.29.8, and 2.30.1.

3

What is the risk rating for CVE-2026-65016?

The risk rating for CVE-2026-65016 is 79, indicating a high severity with a CVSS score of 7.7.

4

How do I fix CVE-2026-65016?

To fix CVE-2026-65016, upgrade n8n to versions 1.123.64, 2.29.8, or 2.30.1 or later.

5

What impact does CVE-2026-65016 have on my system?

CVE-2026-65016 can allow unauthorized users to gain administrative access due to improper role assignment during authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203