CVE-2026-54302: n8n: Stored XSS in Chat Trigger Node
n8n has a stored cross-site scripting flaw in the Chat Trigger node. A user with workflow edit access can set a malicious webhookId so that the generated chat page runs their JavaScript in the n8n origin when a logged-in user opens it. Fixed in n8n 1.123.55, 2.25.7 and 2.26.2.
Published Jun 16, 2026 · Updated Jul 20, 2026 · Analysis Nov 9, 2026
What an attacker can do
The Chat Trigger node (@n8n/n8n-nodes-langchain.chatTrigger) generates a chat page for a workflow. The webhookId value is not neutralized when the page is built. An editor can put script into it, and the script is stored with the workflow.
When another logged-in user opens the chat URL, the code runs in the n8n origin with that user's session privileges. An attacker who holds only edit rights on one workflow can then act as an owner or admin who clicks the link: read credentials and workflows, create or change workflows, or add accounts. That is why the CVSS vector has changed scope and high confidentiality impact.
The attacker needs a low-privilege account with workflow edit access, and a victim who is signed in and opens the chat URL, so one click is required. Team instances where many people can edit workflows, and where chat links are shared, are the exposed setting.
Who is affected
Affected npm n8n versions: below 1.123.55; 2.0.0-rc.0 up to but not including 2.25.7; and 2.26.0 up to but not including 2.26.2. It matters on instances where more than one person can edit workflows and Chat Trigger nodes are enabled.
npm ls n8n
n8n --versionFor Docker, check the image tag. The version also appears in the n8n UI under Help, About.
n8n
- Ecosystem
- npm
- Affected
- < 1.123.55
- Fixed in
- 1.123.55
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.26.0, < 2.26.2
- Fixed in
- 2.26.2
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.0.0-rc.0, < 2.25.7
- Fixed in
- 2.25.7
- Check
npm ls n8n
How to fix it
Upgrade to n8n 1.123.55, 2.25.7 or 2.26.2, or later, within your release line:
npm install [email protected]For Docker, pull the matching tag. If you cannot upgrade yet, the advisory gives two short-term measures that do not fully fix the risk: limit workflow creation and editing to fully trusted users, and disable the node by adding @n8n/n8n-nodes-langchain.chatTrigger to the NODES_EXCLUDE environment variable.
How to tell if you were hit
Inspect Chat Trigger nodes in your workflows and check that each webhookId looks like a normal UUID. Anything containing quotes, angle brackets, script tags or javascript: is suspect. You can search the workflow_entity table or export the workflows as JSON and grep for webhookId values that are not UUID-shaped. Check which accounts edited those workflows, and review admin actions made around the time a chat link was opened.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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.chatTriggerto theNODES_EXCLUDEenvironment variable.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Credited to sm1ee.
Questions
- Does the attacker need an account on my n8n instance?
Yes. They need an authenticated account with workflow edit access, and a victim who is logged in has to open the chat URL.
- Can I work around CVE-2026-54302 without upgrading?
Partly. Add @n8n/n8n-nodes-langchain.chatTrigger to NODES_EXCLUDE, or limit workflow editing to trusted users. The advisory says neither fully removes the risk.
- Which versions are fixed?
1.123.55, 2.25.7 and 2.26.2, depending on your release line.
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 entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
