All vulnerabilities

Servers and applications

GHSA-xhmh-8fgr-xqhj

Custom-role deletion's reassignment path bypasses project-scoped authorization

Severity
High 7.4
Published
5 Aug 2026
Last changed
5 Aug 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.33.4, 2.34.1
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change some data · Slow it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:L/SC:H/SI:H/SA:H
Sources
Project advisories (GitHub)

Description

Deleting a custom project role with a reassignment target validated only that the target role existed and was also project-scoped, it performed no project-level authorization check. A user holding only the narrow role:manageProject global scope could delete any custom project role in use anywhere on the instance and reassign its holders, including themselves, to the built-in project:admin role, gaining full administrative control of projects they had no legitimate access to.

From n8n-io/n8n's security advisory.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Audit and revoke delegated custom global roles that carry the role:manageProject scope, limiting that scope to fully trusted administrators only.
  • If the CUSTOM_ROLES feature is not actively required, consider disabling it to remove the affected endpoint entirely.
  • Restrict n8n instance access to fully trusted users only.

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

Workarounds as given by n8n-io/n8n's security advisory.

Affected software

SoftwareAffected versions
n8nServers and applications · github:n8n-io/n8n
  • Every version before 2.34.1
  • Every version before 2.33.4

About n8n

low-code automation tool

From Wikidata, CC0 1.0.
Weekly downloads (npm)
103,525npm, 15 Nov 2026
Docker Hub pulls
286,090,810Docker Hub, 15 Nov 2026
GitHub stars
210,541GitHub, 15 Nov 2026
Forks
61,525GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Written in
TypeScript, Node.jsWikidata
First released
2019Wikidata
First published on GitHub
22 Jun 2019GitHub

References