NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-42228: n8n Vulnerable to Hijacking of Unauthenticated Chat Execution

mediumCVSS 4.0 6.3 · 3.1 5.4GHSA-f77h-j2v7-g6mw

n8n's /chat WebSocket endpoint, used by the Chat Trigger node's Hosted Chat, did not check that a connection was allowed to join an execution. An unauthenticated attacker who knows the ID of a waiting execution can read its pending prompt and submit input. Fixed in n8n 1.123.32, 2.17.4 and 2.18.1.

Published Apr 29, 2026 · Updated May 8, 2026 · Analysis Nov 5, 2026

What an attacker can do

The Hosted Chat feature keeps a workflow execution in a waiting state while it expects the user's reply. The /chat endpoint did not verify that the incoming connection belonged to that execution. An attacker who attaches to it receives the prompt meant for the legitimate user and can send arbitrary input to resume the run or steer the workflow's later steps.

Three conditions must hold. The instance exposes a public Hosted Chat workflow with authentication set to None. A target execution is waiting at that moment. The attacker can obtain or discover that execution ID. The advisory does not say how IDs are discovered, which is why the CVSS attack complexity is high in the 3.1 vector.

The impact is limited, with low confidentiality and integrity effects. The risk grows if the chat workflow feeds an AI agent node or tools, because injected input then influences what the agent does next.

Who is affected

n8n on npm in these ranges: below 1.123.32, from 2.0.0 below 2.17.4, and 2.18.0 below 2.18.1. Only instances with a Chat Trigger node set to Authentication None and Hosted Chat enabled are exposed.

npm ls n8n

For a Docker install, read the version in the n8n UI under Help, About.

n8n

Ecosystem
npm
Affected
< 1.123.32
Fixed in
1.123.32
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.18.0, < 2.18.1
Fixed in
2.18.1
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0, < 2.17.4
Fixed in
2.17.4
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.123.32, 2.17.4 or 2.18.1, whichever matches your release line, or later:

npm install -g [email protected]

If you cannot upgrade yet, set the Authentication field on every Chat Trigger node to n8n User Auth instead of None. The advisory says this does not fully remove the risk and is only a short-term step.

How to tell if you were hit

The advisory gives no indicators. Review executions of Hosted Chat workflows for waiting runs that were resumed with input you did not expect, or from unfamiliar IP addresses. Check reverse proxy logs for WebSocket connections to /chat that do not match your chat users. List every Chat Trigger node with Authentication set to None.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

The /chat WebSocket endpoint used by the Chat Trigger node's Hosted Chat feature did not verify that an incoming connection was authorized to interact with the target execution. An unauthenticated remote attacker who could identify a valid execution ID for a workflow in a waiting state could attach to that execution, receive the pending prompt intended for the legitimate user, and submit arbitrary input to resume or influence downstream workflow behavior.

Exploitation requires the following conditions:

  • The instance exposes a public Hosted Chat workflow with authentication set to None.
  • A target execution is in a waiting state at the time of the attack.
  • The attacker can obtain or discover the execution ID of that waiting execution.

Patches

The issue has been fixed in n8n versions 1.123.32, 2.17.4, and 2.18.1. 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:

  • Enable authentication on all Chat Trigger nodes by setting the Authentication field to n8n User Auth rather than None.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

--- n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.

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

Credited to 34selen, Aikido-Security, JorianWoltjer, reindaelman, grumpinout1, vbCrLf.

Questions

Is a Chat Trigger with n8n User Auth affected?

The advisory lists Authentication None as a precondition and suggests n8n User Auth as a temporary mitigation. It also says that does not fully remove the risk.

Does the attacker need an account?

No. The attacker is unauthenticated. They do need a valid execution ID of a workflow that is waiting.

Is CVE-2026-42228 exploited in the wild?

No source says so. It is not marked as known exploited.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries