Cross-site scripting in n8n - CVE-2026-54302

 

Cross-site scripting in n8n - CVE-2026-54302

Published: June 16, 2026


Vulnerability identifier: #VU134570
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-54302
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: n8n
Affected software:
n8n

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary JavaScript in the victim's browser within the n8n origin.

The vulnerability exists due to cross-site scripting in the Chat Trigger generated page when handling a crafted webhookId value. A remote user can set a malicious webhookId and cause script execution in the victim's session context to execute arbitrary JavaScript in the victim's browser within the n8n origin.

User interaction is required when a logged-in user visits the chat URL.


How to mitigate CVE-2026-54302

Install security update from vendor's website.

Sources