CVE-2026-118644: n8n: error workflow inherits user identity, steals creds

HIGH
Published October 28, 2026
CISO Take

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 point a colleague's workflow at an error workflow they own, inherit the colleague's identity when it fails, and resolve that colleague's per-user dynamic credential secrets. This matters most where n8n orchestrates AI agents with access to LLM API keys, databases and SaaS tokens, because a low-privilege insider can turn a failure into credential theft with changed scope. Exploitation needs high complexity and user interaction, and there is no public exploit, Nuclei template, KEV listing or EPSS data, so the near-term likelihood is moderate. Upgrade to 2.41.5 or 2.42.2, audit workflows for unexpected errorWorkflow settings, and rotate credentials that were exposed to shared projects.

Sources:NVDGitHub Advisoryvulncheck.comATLAS

What is the risk?

High (CVSS 7.7). The attack is network-reachable and needs only low privileges (project editor), but it also needs a victim workflow to fail and some user interaction, and the complexity is high. The changed scope and high confidentiality and integrity impact come from the attacker acting with the victim's identity and reaching credentials the attacker was never granted. There are no known exploits, KEV listing or SSVC decision, so the likelihood is moderate. The main exposure is in multi-user n8n instances where editors share projects and workflows use per-user dynamic credentials.

How does the attack unfold?

Initial Access
A low-privilege project editor sets a colleague's workflow errorWorkflow to an error workflow they own.
AML.T0081
Trigger
The colleague's workflow fails, and n8n passes the full execution context, including the user's identity, to the attacker's error workflow.
AML.T0012
Credential Access
The attacker's error workflow runs as the colleague and resolves their per-user dynamic credential secrets.
AML.T0083
Impact
The attacker uses the stolen secrets to reach LLM APIs, data stores and SaaS systems beyond their own permissions.
AML.T0091

What systems are affected?

PackageEcosystemVulnerable RangePatched
n8nnpm—No patch
208.5KOpenSSF 7.116 dependentsPushed 7d ago44% patched~19d to patchFull package profile →

Do you use n8n? You're affected.

How severe is it?

CVSS 3.1
7.7 / 10
EPSS
0.2%
chance of exploitation in 30 days
Higher than 10% of all CVEs
Exploitation Status
No known exploitation
Sophistication
Moderate

What is the attack surface?

AVACPRUISCIA
AVNetwork
ACHigh
PRLow
UIRequired
SChanged
CHigh
IHigh
ANone

What should I do?

6 steps
  1. Upgrade n8n to 2.41.5 or later, or to 2.42.2 or later on the 2.42.x line.

  2. Until patched, limit project editor rights and restrict who can change workflow settings.

  3. Audit all workflows for settings.errorWorkflow values that point to workflows owned by other users, and review recent changes to those settings.

  4. Review the execution logs of error workflows for access to credentials belonging to users other than the error workflow's owner.

  5. Rotate per-user dynamic credentials and API keys that may have been exposed, especially in shared projects.

  6. Prefer scoped, least-privilege credentials for AI agent workflows and monitor downstream API use for anomalies.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Art. 15-Accuracy, robustness and cybersecurity
ISO 42001
A.6.2.6-AI system operation and monitoring
NIST AI RMF
MANAGE 2.3-Response to previously unknown risks and vulnerabilities
OWASP LLM Top 10
LLM06-Excessive Agency

Frequently Asked Questions

What is CVE-2026-118644?

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 point a colleague's workflow at an error workflow they own, inherit the colleague's identity when it fails, and resolve that colleague's per-user dynamic credential secrets. This matters most where n8n orchestrates AI agents with access to LLM API keys, databases and SaaS tokens, because a low-privilege insider can turn a failure into credential theft with changed scope. Exploitation needs high complexity and user interaction, and there is no public exploit, Nuclei template, KEV listing or EPSS data, so the near-term likelihood is moderate. Upgrade to 2.41.5 or 2.42.2, audit workflows for unexpected errorWorkflow settings, and rotate credentials that were exposed to shared projects.

Is CVE-2026-118644 actively exploited?

No confirmed active exploitation of CVE-2026-118644 has been reported, but organizations should still patch proactively.

How to fix CVE-2026-118644?

1. Upgrade n8n to 2.41.5 or later, or to 2.42.2 or later on the 2.42.x line. 2. Until patched, limit project editor rights and restrict who can change workflow settings. 3. Audit all workflows for settings.errorWorkflow values that point to workflows owned by other users, and review recent changes to those settings. 4. Review the execution logs of error workflows for access to credentials belonging to users other than the error workflow's owner. 5. Rotate per-user dynamic credentials and API keys that may have been exposed, especially in shared projects. 6. Prefer scoped, least-privilege credentials for AI agent workflows and monitor downstream API use for anomalies.

What systems are affected by CVE-2026-118644?

This vulnerability affects the following AI/ML architecture patterns: agent frameworks, workflow automation platforms, LLM orchestration pipelines, multi-tenant AI automation.

What is the CVSS score for CVE-2026-118644?

CVE-2026-118644 has a CVSS v3.1 base score of 7.7 (HIGH). The EPSS exploitation probability is 0.20%.

What is the AI security impact?

Affected AI Architectures

agent frameworksworkflow automation platformsLLM orchestration pipelinesmulti-tenant AI automation

MITRE ATLAS Techniques

AML.T0012Valid Accounts
AML.T0081Modify AI Agent Configuration
AML.T0083Credentials from AI Agent Configuration
AML.T0098AI Agent Tool Credential Harvesting

Compliance Controls Affected

EU AI Act: Art. 15
ISO 42001: A.6.2.6
NIST AI RMF: MANAGE 2.3
OWASP LLM Top 10: LLM06

What are the technical details?

Original Advisory

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.

Exploitation Scenario

A malicious or compromised project editor in a shared n8n instance sets the errorWorkflow of a colleague's AI agent workflow to an error workflow the editor owns. When the colleague's workflow next fails, or is made to fail, n8n sends the full execution context, including the colleague's identity, to the attacker's error workflow. That workflow runs as the colleague and resolves their per-user dynamic credentials, such as LLM API keys and CRM or database tokens. The attacker exfiltrates the secrets and uses them to reach systems outside their own permissions.

Weaknesses (CWE)

CWE-266 — Incorrect Privilege Assignment: A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.

  • [Architecture and Design, Operation] Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
  • [Architecture and Design, Operation] Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Timeline

Published
October 28, 2026
Last Modified
October 28, 2026
First Seen
October 28, 2026

Related Vulnerabilities