Authorization Bypass Through User-Controlled Key Affecting n8n package, versions <1.123.64>=2.0.0-rc.0 <2.29.8>=2.30.0 <2.30.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authorization Bypass Through User-Controlled Key vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-N8N-18322070
  • published27 Jul 2026
  • disclosed22 Jul 2026
  • creditTaeyoung Jeong

Introduced: 22 Jul 2026

NewCVE-2026-65016  (opens in a new tab)
CWE-639  (opens in a new tab)

How to fix?

Upgrade n8n to version 1.123.64, 2.29.8, 2.30.1 or higher.

Overview

n8n is a n8n Workflow Automation Tool

Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key in the SSO instance-role provisioning. An attacker can gain full administrative privileges by manipulating the instance-role claim issued by the Identity Provider (IdP) during authentication.

Note: This is only exploitable if Enterprise SSO is configured, instance-role provisioning is enabled via the N8N_SSO_SCOPES_PROVISION_INSTANCE_ROLE flag, and the attacker can control the value of the instance-role claim from the IdP.

Workaround

This vulnerability can be mitigated by disabling instance-role provisioning, auditing IdP claim mappings to prevent user-controlled attributes from supplying the instance-role claim value, or restricting SSO access to fully trusted users only.

References

CVSS Base Scores

version 4.0
version 3.1