CVE-2026-130167 in n8n
Summary
by MITRE • 11/24/2026
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.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/24/2026
The vulnerability identified affects n8n, an open-source workflow automation platform widely used for orchestrating complex data pipelines and application integrations. The core issue lies in the improper access control mechanisms governing administrative operations within the system's role-based access control model. Specifically, prior to versions 2.47.6, 2.48.3, and 3.2.2, the platform failed to enforce strict separation of duties for critical account management functions when custom instance roles were utilized. This flaw allows users assigned with specific custom permissions related to user management to bypass intended restrictions designed to protect the highest privilege level within the application environment.
Technically, the vulnerability stems from a logic error in how permission checks are evaluated during password reset and role modification requests. In standard configurations, certain administrative actions such as resetting passwords or altering roles of superusers are typically restricted to prevent escalation attacks. However, when administrators define custom instance roles that include user management permissions, the validation logic incorrectly assumes these permissions grant broad authority over all accounts, including the primary instance owner account. Consequently, an authenticated attacker possessing a role with these specific user management capabilities can invoke API endpoints or interface functions intended for managing lower-privilege users to target the owner account directly. This lack of explicit exclusion checks against the highest privilege tier constitutes a classic authorization bypass flaw where the system fails to distinguish between general administrative duties and privileged ownership controls.
The operational impact of this vulnerability is severe, as it leads to complete compromise of the n8n instance through two primary vectors: credential takeover or role manipulation. By obtaining a password reset link for the owner account, an attacker can set a new password and gain full authenticated access with unrestricted privileges. Alternatively, by changing the owner's role, the attacker could theoretically demote the legitimate administrator while promoting themselves to that same level of authority, effectively seizing control of all workflows, credentials stored within n8n, and connected integrations. Since n8n often handles sensitive data flows between various enterprise applications, this compromise can lead to broader security incidents including data exfiltration, unauthorized automation execution, or lateral movement into other systems integrated via the compromised workflow engine.
This vulnerability aligns with CWE-269, which describes Improper Privilege Management, specifically highlighting failures in enforcing intended access control policies for privileged accounts. It also maps to MITRE ATT&CK technique T1078, Valid Accounts, as exploitation relies on existing authenticated credentials that are then escalated through improper authorization checks rather than initial credential theft. The attack path resembles privilege escalation via insecure direct object references or broken access control patterns where the system does not validate whether the target resource belongs to a protected entity before processing administrative requests.
Mitigation strategies focus primarily on immediate software updates and configuration hardening. Organizations running affected versions of n8n must upgrade immediately to version 2.47.6, 2.48.3, or 3.2.2 where the access control logic has been corrected to explicitly prevent custom roles from affecting the instance owner account unless specifically intended by design. In environments where upgrading is not instantly feasible, administrators should audit existing custom role definitions and remove any user management permissions assigned to non-owner accounts until patches are applied. Additionally, implementing multi-factor authentication for all administrative accounts adds a layer of defense that can mitigate some risks associated with credential-based attacks, although it does not directly address the underlying authorization flaw. Regular review of role assignments against the principle of least privilege is recommended to ensure no single account holds excessive power over critical system functions.