CVE-2026-118644

n8n before 2.41.5 and 2.42.2 Credential Theft via Error-Workflow Context Inheritance

Published Oct 28, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
n8n before 2.41.5 and 2.42.x before 2.42.2 passes a failed workflow's full execution context, including the identity of the user who started the run, to the configured error workflow. A project editor can set a colleague's workflow settings.errorWorkflow to an error workflow they own, inherit the colleague's identity when that workflow fails, and resolve the colleague's per-user dynamic credential secrets.

Analysis

AI-generated

Technical impact

n8n before 2.41.5 passes a failed workflow’s full execution context, including the identity of the user who started the run, to the configured error workflow. A project editor can set a colleague’s workflow errorWorkflow to a workflow they own, inheriting the colleague’s identity when that workflow fails and revealing the colleague’s per‑user dynamic credential secrets. This flaw allows an attacker with permission to configure error workflows to steal credentials of other users.

Affected Systems

The vulnerability affects the n8n n8n automation platform for all versions prior to 2.41.5 and 2.42.2. It applies to deployments where project editors have the right to modify workflow settings and can define an errorWorkflow.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity, and no EPSS score is available, so the exploitation likelihood is unknown. The flaw is not included in the CISA KEV catalog. An attacker requires at least project‑editor privileges to change the errorWorkflow setting; once configured, a failing workflow triggers the error workflow under the original user’s identity, allowing the attacker to access that user’s secrets.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade n8n to version 2.41.5 or later, which fixes the error‑workflow context inheritance issue.
  • Restrict permissions so that only the owner of a workflow can set or modify its errorWorkflow value.
  • Audit existing error workflows to remove or secure per‑user dynamic credential secrets, or replace them with shared credentials that are not tied to a specific user.

Generated by OpenCVE AI on October 28, 2026 at 20:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description n8n before 2.41.5 and 2.42.x before 2.42.2 passes a failed workflow's full execution context, including the identity of the user who started the run, to the configured error workflow. A project editor can set a colleague's workflow settings.errorWorkflow to an error workflow they own, inherit the colleague's identity when that workflow fails, and resolve the colleague's per-user dynamic credential secrets.
Title n8n before 2.41.5 and 2.42.2 Credential Theft via Error-Workflow Context Inheritance
First Time appeared N8n
N8n n8n
Weaknesses CWE-266
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N'}

Weaknesses
  • CWE-266

    Incorrect Privilege Assignment

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 1:18 PM
Reserved
Oct 28, 2026, 5:24 PM
Status
Deferred
Published
Oct 28, 2026, 7:17 PM
Modified
Nov 3, 2026, 2:17 PM