Custom Instance Role with User Management Permissions Gives Control of the Owner Account
Description
Impact
n8n protected the instance owner account from changes by every other user. The password reset link and role change operations did not apply that protection to users with a custom instance role. A user whose custom instance role included user management permissions could obtain a password reset link for the owner and take over the owner account, or change the owner's role. This gave the attacker full control of the instance.
Exploitation required the custom roles feature and a custom instance role with user management permissions assigned to the attacker.
Patches
The issue has been fixed in n8n versions 2.47.6, 2.48.3 and 3.2.2. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Restrict n8n instance access to fully trusted users only.
- Remove user management permissions from custom instance roles assigned to users who are not fully trusted.
- Enable two-factor authentication on the owner account.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.