Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with workflow editor credentials
-
DeliveryInject JavaScript into Chat Trigger Custom CSS field
-
ExploitPayload stored server-side, bypassing sanitize-html
-
ExecutionVictim visits public chat page URL
-
PersistInjected script executes in victim browser
-
ImpactSession cookie or credential theft
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 | Exploitation requires an authenticated n8n user account with permission to create or modify workflows - confirmed by the CVSS 4.0 PR:L metric. The attacker must specifically target the Custom CSS field within a Chat Trigger node. Victims must visit the public chat page associated with the compromised workflow; this is a passive victim requirement (UI:P in CVSS 4.0). No non-default configuration is required beyond the Chat Trigger node being deployed with a public URL, which is its standard, intended use case. Exploitation is limited by: (1) the attacker must hold valid n8n credentials with workflow editing rights, reducing opportunistic mass exploitation; (2) victims must actively visit the specific public chat page; and (3) impact is bounded to the browser context of the public chat page, not the n8n administrative interface. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) scores 5.1 (Medium). Key risk signals: attack complexity is low with no special attack requirements (AT:N), but exploitation requires an authenticated account with workflow editing rights (PR:L) and passive victim interaction - visiting the public chat page (UI:P). The scope change to subsequent systems (SC:L/SI:L) correctly captures that the injecting attacker harms third-party visitors, not just themselves. No EPSS data was provided in the input, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV and no public exploit code has been identified. Real-world risk is moderate rather than critical: the insider or compromised-account prerequisite narrows the opportunistic threat surface, but any n8n deployment offering public-facing Chat Trigger workflows is exposed to cross-user compromise once a privileged account is leveraged. Availability is not impacted (VA:N/SA:N), and confidentiality and integrity effects are assessed as low per the CVSS 4.0 vector. |
| Exploit ScenarioDerived | An attacker with a legitimate or compromised n8n account holding workflow editor permissions creates or edits a Chat Trigger workflow and places a malicious JavaScript payload in the Custom CSS field, bypassing the improperly configured sanitize-html filter. The payload is persisted server-side and rendered to every user who subsequently visits the public chat URL associated with that workflow. Upon page load, the injected script executes in victims' browsers, enabling session cookie theft, credential harvesting via fake login overlays, or silent redirection to attacker-controlled infrastructure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 30, 2026
Stored XSS in n8n's Chat Trigger node allows authenticated workflow editors to inject JavaScript through a misconfigured sanitize-html filter in the Custom CSS field, which then executes in the browsers of every user visiting the public chat page. Affected are all 1.x releases before 1.123.27, the 2.0.0-2.13.2 range, and 2.14.0; fixed versions are 1.123.27, 2.13.3, and 2.14.1. No public exploit code or CISA KEV listing has been identified at time of analysis, and the CVSS 4.0 score of 5.1 reflects the authenticated prerequisite and bounded per-user impact.
RemediationAI
Upgrade n8n to version 1.123.27 (for the 1.x line), 2.13.3 (for the 2.13.x line), or 2.14.1 (for the 2.14.x line) as documented in the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-3c7f-5hgj-h279. If immediate patching is not feasible, restrict workflow creation and modification permissions to only fully trusted personnel, since the attack requires an authenticated account with those privileges - revoking or auditing who holds such rights limits the injection surface. Additionally, consider disabling or blocking public access to Chat Trigger node endpoints until the patch is applied; this eliminates victim exposure at the cost of interrupting any public-facing chat workflows. There are no other documented workarounds that address the sanitize-html misconfiguration directly without a code-level fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is an open-source workflow automation platform (CPE: cpe:2.3:a:n8n:n8n) whose Chat Trigger node exposes a publicly accessible chat interface, configurable with a Custom CSS field. n8n uses the sanitize-html JavaScript library to strip dangerous markup before rendering user-supplied content, but a misconfiguration in how the library is applied to this specific field allows crafted input to bypass filtering. CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting) is the root cause: the application stores unsanitized attacker-controlled data server-side and later renders it verbatim into the chat page DOM, making this a persistent (stored) variant. Because the public chat page is served to all visitors without authentication, a single injection poisons the page for every subsequent user, amplifying impact beyond the injecting account.
Know when N8n gets its next vulnerability
- 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:L/VI:L/VA:N/SC:L/SI:L/SA:N
Stored XSS exploitable over network by authenticated workflow editor (PR:L), requires victim page visit (UI:R), scope change (S:C) reflects cross-user impact; no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
n8n contains a stored cross-site scripting vulnerability in the Chat Trigger node's Custom CSS field due to a misconfiguration of the sanitize-html library. Affected releases are those before 1.123.27, the 2.0.0 through 2.13.2 line, and 2.14.0 (fixed in 1.123.27, 2.13.3, and 2.14.1). An authenticated user with permission to create or modify workflows can inject JavaScript that bypasses sanitization, resulting in stored XSS against any user who visits the public chat page.
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.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
EUVD-2026-40444
GHSA-99wx-hwrx-8g4w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB