{
  "id": "CVE-2026-65016",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-65016",
  "published_at": "2026-07-22T11:21:38.704Z",
  "title": "n8n before 1.123.64, 2.29.8, and 2.30.1 Privilege Escalation via SSO Instance-Role",
  "vendor": "n8n-io",
  "product": "n8n",
  "cvss": {
    "score": 8.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-639",
  "cpes": [
    "cpe:2.3:a:n8n:n8n:*:*:*:*:community:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:2.30.0:*:*:*:community:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:2.30.0:*:*:*:enterprise:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.7,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003c 1.123.64"
        ],
        "fixed_in": [
          "1.123.64"
        ]
      },
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 2.30.0, \u003c 2.30.1"
        ],
        "fixed_in": [
          "2.30.1"
        ]
      },
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 2.0.0-rc.0, \u003c 2.29.8"
        ],
        "fixed_in": [
          "2.29.8"
        ]
      }
    ],
    "upgrade": [
      "Upgrade n8n to 1.123.64 or later.",
      "Upgrade n8n to 2.30.1 or later.",
      "Upgrade n8n to 2.29.8 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-35q8-9mj6-wjmf"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
