Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain n8n account with workflow edit rights
-
DeliveryCreate workflow with Chat Trigger node
-
ExploitInject JavaScript via malicious webhookId
-
ExecutionLure authenticated victim to chat URL
-
PersistPayload executes in n8n origin
-
ImpactHijack session and call internal APIs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated n8n account with workflow edit permission (PR:L), the Chat Trigger node (@n8n/n8n-nodes-langchain.chatTrigger) enabled in the instance, and victim interaction (UI:P) - a logged-in user must visit the attacker-crafted chat URL for the payload to execute. Exploitation is limited by the need for pre-existing edit access (so anonymous internet attackers cannot exploit directly) and by deployments where the Chat Trigger node has been excluded via NODES_EXCLUDE. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N) yields 7.0 (High) and is consistent with the description: exploitation requires an authenticated low-privileged user (PR:L) with workflow edit rights and a victim interaction (UI:P) to visit the chat URL. Real-world risk is moderated by the privileged precondition - an attacker must already have workflow edit access - but elevated where n8n is multi-tenant or used by teams with mixed trust levels, because successful exploitation hijacks an authenticated session and grants access to whatever the victim can do (often admin in single-tenant deployments). No KEV listing, no EPSS data, and no public exploit identified at time of analysis, so this is not currently a mass-exploitation priority, but stored XSS against an admin in an automation platform that holds many credentials is a high-impact internal threat. |
| Exploit ScenarioDerived | An attacker with a low-privileged n8n account that has workflow edit rights creates or modifies a workflow containing a Chat Trigger node and sets a malicious webhookId payload containing JavaScript. The attacker then shares the resulting chat URL with a higher-privileged target (e.g., an admin) or leaves it discoverable; when the victim opens the link while authenticated, the script executes in the n8n origin and can exfiltrate the session, call internal APIs, or pivot to credential stores held by other workflows. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 23, 2026
Stored cross-site scripting in n8n workflow automation platform allows authenticated users with workflow edit permissions to inject arbitrary JavaScript via the Chat Trigger node's webhookId parameter. When a logged-in user visits the chat URL, the injected code executes in the n8n origin with the victim's session privileges, enabling account takeover. No public exploit identified at time of analysis, but a vendor-released patch is available.
Earlier versions of this analysis (2)
Stored cross-site scripting in n8n's Chat Trigger node lets an authenticated workflow editor inject arbitrary JavaScript via a malicious webhookId, which executes in the n8n origin when any logged-in user visits the generated chat URL. The flaw affects n8n versions prior to 1.123.55, 2.25.7, and 2.26.2, and no public exploit identified at time of analysis, but the GitHub Security Advisory GHSA-42h7-m79w-wvg5 documents the issue and a vendor-released patch is available. Exploitation can hijack victim sessions in the n8n origin and pivot to further actions allowed by the victim's privileges.
Stored cross-site scripting in n8n workflow automation platform allows an authenticated user with workflow edit privileges to inject arbitrary JavaScript via a malicious webhookId in the Chat Trigger node. When another authenticated user visits the chat URL, the payload executes in the n8n origin under their session, enabling account takeover within the platform. No public exploit identified at time of analysis, but the GitHub Security Advisory (GHSA-42h7-m79w-wvg5) confirms the issue and provides fixed versions.
RemediationAI
Vendor-released patch: upgrade n8n to 1.123.55, 2.25.7, or 2.26.2 (or later), as appropriate for your release track, per the GitHub Security Advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-42h7-m79w-wvg5. If immediate upgrade is not possible, restrict workflow creation and editing permissions to fully trusted users only to reduce the pool of potential injectors, and disable the Chat Trigger node by adding @n8n/n8n-nodes-langchain.chatTrigger to the NODES_EXCLUDE environment variable - the trade-off is that any existing chat-based workflows will stop functioning. These workarounds are partial and should be treated as bridging measures, not a substitute for patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is a popular open-source workflow automation platform distributed via npm (pkg:npm/n8n). The vulnerability is a CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e., Cross-Site Scripting) flaw in the Chat Trigger node provided by the @n8n/n8n-nodes-langchain package. The webhookId field, which forms part of the chat URL and is rendered into the generated chat page, is insufficiently sanitized, allowing an attacker to break out of the intended HTML/JS context and inject script that runs same-origin in the n8n web UI.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable web UI, authenticated workflow editor required (PR:L), victim must visit chat URL (UI:R), and XSS in n8n origin crosses to the victim's session context (S:C).
Primary rating from Vendor (https://github.com/n8n-io/n8n).
CVSS VectorVendor: https://github.com/n8n-io/n8n
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
N8n workflow automation users with editing permissions can inject malicious code via the Chat Trigger node that compromises colleague accounts and enables account takeover when those colleagues access affected URLs. This threat directly impacts the integrity of automated business operations and sensitive data managed through n8n workflows. A vendor-released patch is available.
Apply vendor patch. If patching is delayed: restrict workflow editor role to trusted administrators only; disable or closely monitor Chat Trigger node usage; audit all existing Chat Trigger configurations for unauthorized modifications.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-38477
GHSA-42h7-m79w-wvg5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB