CVE-2026-130167: n8n: Custom Instance Role with User Management Permissions Gives Control of the Owner Account
n8n is an open source workflow automation platform. Prior to 2.47.6, 2.48.3, and 3.2.2, the password reset link and role change operations do not protect the instance owner account from users with a custom instance role. A user whose custom instance role includes user management permissions can obtain a password reset link for the owner and take over the owner account, or change the owner's role, gaining full control of the instance. Exploitation requires the custom roles feature and a custom instance role with user management permissions. This issue is fixed in versions 2.47.6, 2.48.3, and 3.2.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.47.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.48.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.2.2
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Only deployments using the custom roles feature are affected, and exploitation additionally requires a custom instance role that includes user management permissions. Users without such a role cannot exploit the issue as described.
What level of access does an attacker need?
The attacker must already hold a custom instance role with user management permissions. They can then request a password reset link for the instance owner or change the owner's role.
What is the impact of successful exploitation?
An attacker can take over the instance owner account or alter its role, gaining full control of the n8n instance.
Which versions contain fixes?
The issue is fixed in n8n versions 2.47.6, 2.48.3, and 3.2.2.