Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain n8n workflow-author access
-
DeliveryInject malicious customCss into Chat Trigger
-
ExploitPublish hosted-chat page (no chat auth)
-
ExecutionSigned-in user visits page
-
PersistScript executes on instance origin
-
ImpactSteal session/token for account takeover
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 workflow author (PR:L) who creates a Chat Trigger node and supplies a malicious customCss value, which is then interpolated unsanitized into the hosted-chat page markup. The payload only executes when a victim - a signed-in n8n user whose session shares the instance origin - actually loads the published chat page (UI:P/passive interaction), making a signed-in visitor a hard prerequisite. A key amplifier is that the chat can be published without n8n user authentication, so any visitor can reach the page, but impact (session/origin access) lands only on authenticated visitors. Limiting factors: single-user/single-operator instances where the only author is also the sole trusted admin face minimal real exposure; the attacker cannot act without workflow-authoring privileges, and no impact occurs without a victim visit. Only affects n8n before 1.123.83, 2.x before 2.41.4, and 2.42.x before 2.42.1. |
| Impact | This is a moderate-severity stored XSS (CVSS 4.0 base 7.0, CWE-79) whose real-world priority is bounded by its access model rather than its network vector. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:H) indicates network reach and low attack complexity, but two signals temper it: PR:L means the attacker must already be an authenticated n8n workflow author, and UI:P means a signed-in victim must visit the attacker's published hosted-chat page for the payload to fire. The elevated VC:H (high confidentiality impact) reflects that execution on the instance origin can compromise the sessions of signed-in visitors (session/token theft, potential account takeover), while VI:L/VA:N keep integrity and availability impact low. No EPSS score, no CISA KEV listing, and no public POC were provided in the input, so there is no evidence of active or widespread exploitation. The notable nuance is that n8n permits publishing a chat WITHOUT n8n user authentication for the chat itself - so while the vector requires a privileged author to plant the payload, the delivery surface to victims is unauthenticated, raising the practical reach once a malicious workflow exists (e.g., in multi-tenant or shared instances). Net: a real but second-tier priority - patch promptly on multi-user/shared instances, lower urgency on single-operator deployments where the author and admin are the same trusted party. |
| Exploit ScenarioDerived | A workflow author on a shared or multi-tenant n8n instance creates a Chat Trigger and sets a crafted customCss value that is interpolated as markup into the hosted-chat page. When a signed-in n8n user (e.g., an administrator) visits that published chat page, the injected script executes on the instance origin and can exfiltrate session cookies or tokens, enabling account takeover. No public exploit identified at time of analysis, so weaponization effort would fall on the attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
Stored cross-site scripting in n8n's Chat Trigger hosted-chat page lets an authenticated workflow author (PR:L) inject arbitrary markup through the customCss parameter, which is interpolated unsanitized into the page and executes on the n8n instance origin in the browser of any signed-in visitor who loads the published chat. The chat itself can be published without n8n user authentication, so the poisoned page is reachable by any visitor, but the impact lands only on authenticated visitors whose sessions share the instance origin. Affects n8n before 1.123.83, 2.x before 2.41.4, and 2.42.x before 2.42.1; rated CVSS 4.0 base 7.0 (CWE-79), and no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to 1.123.83 on the 1.x line, 2.41.4 on the 2.x line, or 2.42.1 on the 2.42.x line, as applicable to your branch; the fix is referenced through the GitHub advisory GHSA-x5cw-hm7v-q7mj and the accompanying VulnCheck advisory (https://www.vulncheck.com/advisories/n8n-before-1.123.83-2.41.4-and-2.42.1-stored-xss-via-chat-trigger-customcss-parameter). If immediate upgrade is not possible, compensating controls include restricting workflow-authoring privileges to trusted operators (this removes the PR:L precondition entirely but may slow legitimate workflow development), auditing existing Chat Trigger nodes for customCss values that contain HTML or script tags and unpublishing any hosted chat that embeds untrusted markup, and disabling the hosted chat page for workflows that do not require it. A restrictive Content-Security-Policy on the hosted-chat route can blunt script execution, but it must be scoped to that route because the injection lands on the n8n instance origin, and a strict policy risks breaking legitimate chat styling-so it should be treated as a stopgap, not a substitute for the patched release.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in 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 source-available workflow automation platform, and its Chat Trigger node can publish a hosted chat page served from the same instance origin as the n8n editor and API. The flaw is CWE-79 (Improper Neutralization of Input During Web Page Generation): a workflow author-supplied customCss value is interpolated into that hosted chat page as markup instead of being escaped or confined to a style context, so attacker-controlled HTML/JavaScript is stored and rendered for every visitor of the published chat. Because the injected script runs on the n8n origin, it inherits that origin's cookies and request context, which is why the independent assessment scores confidentiality as high (C:H) with limited integrity impact (I:L) and no availability effect, under a scope-changed CVSS 3.1 vector of AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N. The CVSS 4.0 vector (PR:L, UI:P) similarly reflects an authenticated author plus passive victim interaction; the ability to publish a chat without n8n user authentication lowers the delivery bar but does not change the prerequisite of author-level privileges to plant the payload or of a signed-in victim to trigger it.
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:H/VI:L/VA:N/SC:N/SI:N/SA:N
Authenticated workflow author sets the payload (PR:L); a victim must visit the page (UI:R); script executes in the victim's origin context (S:C) enabling session theft (C:H), with limited integrity (I:L) and no availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
n8n before 1.123.83, 2.x before 2.41.4, and 2.42.x before 2.42.1 contains a stored cross-site scripting vulnerability in the Chat Trigger hosted-chat page, where insufficiently sanitised customCss values are interpolated into the page as markup. Workflow authors can publish a chat without n8n user authentication whose payload executes on the instance origin, acting on the sessions of signed-in visitors.
Technical POC Analysis
Evidence basis: GitHub advisory GHSA-x5cw-hm7v-q7mj and the supplied CVE metadata.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A stored cross-site scripting flaw in n8n's hosted chat feature allows a workflow author who already has a foothold in the platform to plant malicious code that executes in the browser sessions of signed-in n8n users. Because the payload runs on the n8n instance's own origin, any authenticated user who views the published chat could be manipulated into actions carrying their privileges - exposing workflows, stored credentials, and connected systems. No vendor patch is currently available, so the organization's exposure depends entirely on how tightly workflow-authoring and chat-publishing rights are controlled.
No vendor-released patch identified at time of analysis. Interim mitigations: disable or restrict the Chat Trigger hosted-chat feature and publishing rights; limit the workflow author role to trusted accounts only; sanitize or block attacker-controlled values in the customCss parameter before rendering; enforce a restrictive Content-Security-Policy on the n8n origin; audit published chat pages and workflow configurations for injected markup; and reduce the privileges and credential scope of authenticated n8n sessions.
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
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
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
EUVD-2026-101730
GHSA-q529-cjvg-c6m6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB