← Back to blog

n8n Chat Trigger XSS: What the Advisory Says to Do Now

A plain-language look at the n8n Chat Trigger XSS advisory for the customCss parameter: what the GitHub advisory says changed, who it affects, and what to do now.

A cracked chat kiosk beside a locked turnstile shows the n8n Chat Trigger XSS exposed versus secured setup.

Checked against the cited sources on .

What Changed: The n8n Chat Trigger XSS Advisory

If you publish a chat widget using n8n's Chat Trigger node, the n8n Chat Trigger XSS advisory published on GitHub on September 30, 2026 is worth reading closely. Tracked as GHSA-x5cw-hm7v-q7mj, it describes a stored cross-site scripting bug in the Chat Trigger node's customCss parameter on hosted chat pages. GitHub's 2026 security overview for the n8n-io/n8n repository lists the same advisory as published September 30, 2026 by a researcher named Matsuuu, rated High severity. The advisory's own CVSS v4 scoring, published Sep 30, 2026, puts the overall severity at 7.0.

According to the advisory, the vulnerability works through stored injection: a workflow editor's customCss value is saved against the Chat Trigger node and later rendered on the public hosted chat page. On a hosted chat page published without n8n user authentication, the advisory states the attacker's customCss content executes there for any visitor who loads the page. In effect, an unauthenticated hosted chat page becomes a delivery point for arbitrary script execution, because the browser treats the stored styling value as code rather than as plain CSS -- the core issue behind this n8n hosted chat security advisory.

Sources: Overview · n8n-io/n8n · GitHub, n8n Chat Trigger Stored XSS via customCss Parameter on Hosted-Chat Page · Advisory · n8n-io/n8n · GitHub

Which n8n Chat Trigger Setups the customCss Vulnerability Affects

The advisory lists n8n versions below 1.123.83, 2.42.1, and 2.41.4 as affected by this n8n chat trigger xss issue, which the advisory also frames as the n8n customCss vulnerability on the hosted chat page, with versions at or above those numbers listed as patched. It does not say whether older legacy major versions outside that numbering carry the same flaw. As an editorial note, teams running unusual historical builds may want to check their own version against the cutoffs directly.

Impact also depends on how a given Chat Trigger page is published. The table below summarizes what the advisory states about each setup.

What the advisory says about affected and unaffected Chat Trigger setups
SetupAdvisory's finding
Chat page with authentication set to NoneAffected: injected customCss executes for any visitor who loads the page
Chat page with n8n User Auth enabledNot affected, per the advisory
Instance below 1.123.83 / 2.42.1 / 2.41.4Affected
Instance at or above those versionsPatched

The advisory names only n8n User Auth as the setting that is not affected. It does not state whether Basic Auth mode offers the same protection. We'd treat Basic Auth as unconfirmed rather than assume it blocks the same attack, since the advisory is specific about which setting it clears.

Sources: n8n Chat Trigger Stored XSS via customCss Parameter on Hosted-Chat Page · Advisory · n8n-io/n8n · GitHub

Patch Now, Then Apply the Advisory's Temporary Mitigations

A chain lock on a kiosk and a deadbolt being installed on a door depict temporary Chat Trigger mitigations.
A chain lock is fastened around a kiosk while a deadbolt is installed on a door in the background.

The fix is version-based: upgrading to n8n 1.123.83, 2.42.1, 2.41.4, or later installs the patch, per the advisory, as the core of this n8n chat trigger security update. Until you apply it, stored customCss content keeps executing for visitors to any affected hosted chat page. This article suggests treating the upgrade as the priority action, since the advisory itself lists patches and workarounds without ranking one above the other.

If you cannot upgrade immediately, the advisory lists several temporary mitigations, stating plainly that none of them fully remediates the risk until the instance is patched.

In our view, applying these four mitigations together is the pragmatic move while you schedule the version upgrade, since the advisory itself says none of them closes the gap alone.

Sources: n8n Chat Trigger Stored XSS via customCss Parameter on Hosted-Chat Page · Advisory · n8n-io/n8n · GitHub

Background: How n8n's Chat Trigger Authentication Setting Works

n8n's Chat Trigger node documentation states that selecting None for chat authentication means no login is required to use the chat. This is background product information, not advisory content, and it does not mention the customCss vulnerability at all.

The same documentation states that selecting n8n User Auth restricts the chat to users who are already logged in to an n8n account. It's useful context for understanding the setting the advisory names as unaffected, but the documentation itself offers no view on security.

Sources: Chat Trigger | Nodes | n8n Docs

What the Advisory Does Not Say

The advisory records no CVE ID and no CWE classification for this n8n chat trigger xss issue, per the supplied text, so it is not yet cross-referenced in general vulnerability databases under a separate identifier. It also does not state whether n8n Cloud-hosted instances were patched automatically or whether self-hosted administrators must apply the upgrade themselves; the advisory simply does not address that question.

Nor does the advisory distinguish impact across n8n's Community and Enterprise editions beyond the version numbers it gives, and no source here confirms real-world exploitation; the advisory describes the flaw and its severity rating, not observed incidents. We think routinely auditing customCss fields is a good habit for any team publishing hosted chat pages, even after patching, because the field accepted unsafe input before this fix.

Sources: n8n Chat Trigger Stored XSS via customCss Parameter on Hosted-Chat Page · Advisory · n8n-io/n8n · GitHub, Overview · n8n-io/n8n · GitHub

Put this into practice

Hands-on n8n challenges

Pick a challenge and build a working workflow in your own n8n environment, with five progressive tips per challenge.

Try a hands-on challenge

For your team

Custom n8n training programs for one team or department, run on your own n8n instance with your own tools and data.

Training for your team

n8n skills assessment

A free quiz of about 20 minutes: 30 questions in 10 skill areas and a level from Beginner to Expert. On AI Adoption Score, another project by the author of this site.

Get your n8n level