CVE-2026-110847: n8n: stored XSS via Chat Trigger customCss
UNKNOWNn8n's Chat Trigger hosted-chat page does not properly sanitise the customCss value, so a workflow author can publish an unauthenticated chat page that runs attacker-controlled JavaScript on the n8n instance origin. That script can act with the session of any signed-in n8n user who opens the page, which could expose the credentials, workflows and API keys the platform holds for connected AI agents and LLM providers. No CVSS score, EPSS data, KEV listing, public exploit or Nuclei template exists yet, so exploitation likelihood is unquantified. Exploitation needs a user with workflow-authoring rights and a victim who visits the page, which makes this mainly an insider or compromised-account risk and a privilege-escalation path. Upgrade to n8n 1.123.83, 2.41.4 or 2.42.1 or later, and review existing Chat Trigger workflows for suspicious customCss values.
What is the risk?
Risk is medium to high pending an official CVSS score. Exploitation is low-complexity once the attacker can create or edit a workflow with a public Chat Trigger. It needs a victim to open the chat link while signed in to n8n, and the impact is session hijacking on the instance origin, with no public exploit or KEV listing so far. Exposure is highest on self-hosted or cloud n8n instances shared by several authors and used for AI agent orchestration, where a low-privileged author could escalate to admin-level actions. Confidence: MEDIUM, since it rests on the vendor advisory and a VulnCheck summary without scoring data.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| n8n | npm | — | No patch |
Do you use n8n? You're affected.
How severe is it?
What should I do?
1 step1) Upgrade to n8n 1.123.83 or later on the 1.x line, 2.41.4 or later on 2.41.x, or 2.42.1 or later on 2.42.x. 2) Until patched, restrict workflow creation and editing rights to trusted users and disable or unpublish Chat Trigger workflows that are not needed. 3) Audit existing Chat Trigger nodes for customCss values containing HTML, script tags, event handlers or closing style tags. 4) Serve the chat UI from a separate origin from the editor, or apply a restrictive Content-Security-Policy that blocks inline scripts. 5) Rotate credentials and API keys if suspicious CSS content is found, and review n8n audit logs for unexpected workflow changes.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-110847?
n8n's Chat Trigger hosted-chat page does not properly sanitise the customCss value, so a workflow author can publish an unauthenticated chat page that runs attacker-controlled JavaScript on the n8n instance origin. That script can act with the session of any signed-in n8n user who opens the page, which could expose the credentials, workflows and API keys the platform holds for connected AI agents and LLM providers. No CVSS score, EPSS data, KEV listing, public exploit or Nuclei template exists yet, so exploitation likelihood is unquantified. Exploitation needs a user with workflow-authoring rights and a victim who visits the page, which makes this mainly an insider or compromised-account risk and a privilege-escalation path. Upgrade to n8n 1.123.83, 2.41.4 or 2.42.1 or later, and review existing Chat Trigger workflows for suspicious customCss values.
Is CVE-2026-110847 actively exploited?
No confirmed active exploitation of CVE-2026-110847 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-110847?
1) Upgrade to n8n 1.123.83 or later on the 1.x line, 2.41.4 or later on 2.41.x, or 2.42.1 or later on 2.42.x. 2) Until patched, restrict workflow creation and editing rights to trusted users and disable or unpublish Chat Trigger workflows that are not needed. 3) Audit existing Chat Trigger nodes for customCss values containing HTML, script tags, event handlers or closing style tags. 4) Serve the chat UI from a separate origin from the editor, or apply a restrictive Content-Security-Policy that blocks inline scripts. 5) Rotate credentials and API keys if suspicious CSS content is found, and review n8n audit logs for unexpected workflow changes.
What systems are affected by CVE-2026-110847?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, workflow automation platforms, LLM orchestration pipelines, chatbot front-ends.
What is the CVSS score for CVE-2026-110847?
No CVSS score has been assigned yet.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0049Exploit Public-Facing ApplicationAML.T0091.000Application Access TokenAML.T0093Prompt Infiltration via Public-Facing ApplicationCompliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An attacker with a low-privileged n8n author account, or a stolen one, creates a workflow with a public Chat Trigger and puts a payload in customCss that breaks out of the style context and injects a script. They send the chat link to an n8n administrator, for example as a request to test a new internal assistant. When the administrator opens it while signed in, the script runs on the n8n origin and uses their session to create an API key, export stored credentials for LLM providers and connected systems, or add a backdoor workflow. The attacker then uses those credentials to reach the organisation's AI services and data.
Weaknesses (CWE)
CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')PrimaryCWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CWE-79 — Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'): The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- [Architecture and Design] Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482]. Examples of libraries and frameworks that make it easier to generate properly encoded output include Microsoft's Anti-XSS library, the OWASP ESAPI Encoding module, and Apache Wicket.
- [Implementation, Architecture and Design] Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required encoding strategies. For any data that will be output to another web page, especially any data that was received from external inputs, use the appropriate encoding on all non-alphanumeric characters. Parts of the same output document may require different encodings, which will vary depending on whether the output is in the: etc. Note that HTML Entity Encoding is only appropriate for the HTML body. Consult the XSS Prevention Cheat Sheet [REF-724] for more details on the types of encoding and escaping that are needed. HTML body Element attributes (such as src="XYZ") URIs JavaScript sections Casca
Source: MITRE CWE corpus.
References
Timeline
Related Vulnerabilities
CVE-2026-3366310.0n8n: member role steals plaintext HTTP credentials
Same package: n8nCVE-2026-3366010.0TensorFlow: type confusion NPD in tensor conversion
Same package: n8nCVE-2026-2185810.0n8n: Input Validation flaw enables exploitation
Same package: n8nCVE-2026-275779.9n8n: Code Injection enables RCE
Same package: n8nCVE-2026-274949.9n8n: security flaw enables exploitation
Same package: n8n