{"id":"CVE-2026-65016","published":"2026-07-22T11:21:38Z","modified":"2026-10-29T21:16:20Z","title":"n8n before 1.123.64, 2.29.8, and 2.30.1 Privilege Escalation via SSO Instance-Role","vendor":"n8n","product":"n8n","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00447,"percentile":0.39772,"provenance":"source"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-35q8-9mj6-wjmf","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/n8n-before-privilege-escalation-via-sso-instance-role","tags":["third-party-advisory"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":7.95},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"n8n","affectedVersions":[{"vendor":"n8n-io","product":"n8n","versions":["< 1.123.64"]},{"vendor":"n8n-io","product":"n8n","versions":[">= 2.30.0, < 2.30.1"]},{"vendor":"n8n-io","product":"n8n","versions":[">= 2.0.0-rc.0, < 2.29.8"]}],"fixedVersions":[{"vendor":"n8n-io","product":"n8n","versions":["1.123.64"]},{"vendor":"n8n-io","product":"n8n","versions":["2.30.1"]},{"vendor":"n8n-io","product":"n8n","versions":["2.29.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-23T18:16:35.338246Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"n8n","vulnerableRanges":["<1.123.64",">=2.30.0, <2.30.1",">=2.0.0-rc.0, <2.29.8"],"patched":["1.123.64","2.30.1","2.29.8"],"from":["GHSA-35q8-9mj6-wjmf"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-47632","exploited":false,"provenance":"source"}}