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

- Severity: High 7.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-07-22T11:21:38.704Z
- Modified: 2026-10-29T21:16:20.600Z
- Also known as: GHSA-35q8-9mj6-wjmf
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- n8n-io n8n: before 1.123.64; from 2.30.0 before 2.30.1; from 2.0.0-rc.0 before 2.29.8 (not affected: 1.123.64; 2.30.1; 2.29.8)
- n8n (npm): before 1.123.64; from 2.30.0 before 2.30.1; from 2.0.0-rc.0 before 2.29.8
- n8n n8n: before 1.123.64; from 2.0.0 before 2.29.8; 2.30.0

## Every score

- VulnCheck: CVSS:4.0 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`
- GitHub: CVSS:4.0 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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/n8n-io/n8n/security/advisories/GHSA-35q8-9mj6-wjmf> (mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/n8n-before-privilege-escalation-via-sso-instance-role> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-65016> (advisory)
- <https://github.com/n8n-io/n8n> (package)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.64> (web)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@2.29.8> (web)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@2.30.1> (web)

## Sources

- CVE List: [CVE-2026-65016](https://www.cve.org/CVERecord?id=CVE-2026-65016), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-35q8-9mj6-wjmf](https://github.com/advisories/GHSA-35q8-9mj6-wjmf), CC-BY-4.0, modified 2026-07-22
- NVD: [CVE-2026-65016](https://nvd.nist.gov/vuln/detail/CVE-2026-65016), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-65016 · Whole record: https://cve.day/CVE-2026-65016.json · Rebuilt by cve.day 2026-11-25T22:59:29.804Z
