CVE-2026-54302: n8n: Stored XSS in Chat Trigger Node
Impact An authenticated user with workflow edit access could inject arbitrary JavaScript into the Chat Trigger's generated page by setting a malicious webhookId. When a logged-in user visited the chat URL, the injected code executed in the n8n origin with that user's session privileges.
Patches The issue has been fixed in n8n versions 1.123.55, 2.25.7, and 2.26.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: - Limit workflow creation and editing permissions to fully trusted users only. - Disable the Chat Trigger node by adding @n8n/n8n-nodes-langchain.chatTrigger to the NODESEXCLUDE environment variable.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Other sources
n8n is an open source workflow automation platform. Prior to 1.123.55, 2.25.7, and 2.26.2, an authenticated user with workflow edit access could inject arbitrary JavaScript into the Chat Trigger's generated page by setting a malicious webhookId. When a logged-in user visited the chat URL, the injected code executed in the n8n origin with that user's session privileges. This vulnerability is fixed in 1.123.55, 2.25.7, and 2.26.2.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 2.25.7 - Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 2.26.2 - Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 1.123.55 - Upgrade
Upgrade
n8nto a version that resolves this vulnerability.Fixed in 1.123.55 - Upgrade
Upgrade
n8nto a version that resolves this vulnerability.Fixed in 2.25.7 - Upgrade
Upgrade
n8nto a version that resolves this vulnerability.Fixed in 2.26.2 - Configuration
Temporarily mitigate by disabling the Chat Trigger node: add `@n8n/n8n-nodes-langchain.chatTrigger` to the `NODES_EXCLUDE` environment variable.
n8n NODES_EXCLUDE = @n8n/n8n-nodes-langchain.chatTrigger - Compensating control
Temporarily mitigate by limiting workflow creation and editing permissions to fully trusted users only (authenticated users with workflow edit access could set a malicious `webhookId` to inject JavaScript).
Event History
Frequently Asked Questions
What is the severity of CVE-2026-54302?
CVE-2026-54302 has a severity rating of high with a score of 7.6.
How do I fix CVE-2026-54302?
To fix CVE-2026-54302, update n8n to the latest version where the vulnerability is patched.
What kind of vulnerability is CVE-2026-54302?
CVE-2026-54302 is a Cross-Site Scripting (XSS) vulnerability.
Who is affected by CVE-2026-54302?
Authenticated users with workflow edit access in n8n are affected by CVE-2026-54302.
What is the risk of CVE-2026-54302 exploitation?
The risk of exploiting CVE-2026-54302 is high, as it allows attackers to inject arbitrary JavaScript into user sessions.