All vulnerabilities

Servers and applications

GHSA-x5cw-hm7v-q7mj

n8n Chat Trigger Stored XSS via customCss Parameter on Hosted-Chat Page

Severity
High 7.0
Published
30 Sept 2026
Last changed
6 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.123.83, 2.41.4, 2.42.1
Attack
Over the network · Needs a user account · Needs someone to view a page or file
Attacker can
Read data · Change some data
CVSS vector
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
Sources
Project advisories (GitHub)

Description

The Chat Trigger lets a workflow author supply custom CSS for the hosted chat page. The value was insufficiently sanitised and interpolated into the page as markup. Where the chat is published without n8n user authentication, the page is served on the instance's own origin, so the author's content executes there for any visitor. A visitor already signed in to the instance has their session acted upon. Chats published with n8n user authentication are not affected.

From n8n-io/n8n's security advisory.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict n8n instance access to fully trusted users only.
  • Audit active Chat Trigger workflows and review the customCss parameter for unexpected values.
  • Enable authentication on Chat Trigger nodes to prevent anonymous visitors from reaching the hosted-chat page.
  • Deactivate Chat Trigger workflows that are not currently required until the instance is patched.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Workarounds as given by n8n-io/n8n's security advisory.

Affected software

SoftwareAffected versions
n8nServers and applications · github:n8n-io/n8n
  • Every version before 1.123.83
  • Every version before 2.42.1
  • Every version before 2.41.4

About n8n

low-code automation tool

From Wikidata, CC0 1.0.
Weekly downloads (npm)
103,525npm, 15 Nov 2026
Docker Hub pulls
286,090,810Docker Hub, 15 Nov 2026
GitHub stars
210,541GitHub, 15 Nov 2026
Forks
61,525GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Written in
TypeScript, Node.jsWikidata
First released
2019Wikidata
First published on GitHub
22 Jun 2019GitHub

References