# GHSA-Q8RC-7M84-MFVJ: Custom Instance Role with User Management Permissions Gives Control of the Owner Account

- Database: GitHub
- Severity: CVSS 7.5 (High)
- Published: 2026-11-13
- Modified: 2026-11-18

## Tracked as

- [CVE-2026-130167](https://cve.now/CVE-2026-130167.md): n8n owner account takeover via custom instance roles

## Affected versions

- n8n (npm): fixed in 2.48.3
- n8n (npm): fixed in 2.47.6
- n8n (npm): fixed in 3.2.2

## 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.

## References

- https://github.com/n8n-io/n8n/security/advisories/GHSA-q8rc-7m84-mfvj

Page: https://cve.now/GHSA-Q8RC-7M84-MFVJ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
