CVE-2026-54302
JSON

7.0high

n8n: Stored XSS in Chat Trigger Node

Severity
7.0high CVSS:4.0 by GitHub_M
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-42h7-m79w-wvg5

Description

n8n is an open source workflow automation platform. Prior to 1.123.55, 2.25.7, and 2.26.2, an authenticated user with workflow edit access could inject arbitrary JavaScript into the Chat Trigger's generated page by setting a malicious webhookId. When a logged-in user visited the chat URL, the injected code executed in the n8n origin with that user's session privileges. This vulnerability is fixed in 1.123.55, 2.25.7, and 2.26.2.

Affected

Product or packageVersionsReported by
n8n-io n8n< 1.123.55, >= 2.0.0-rc.0, < 2.25.7, >= 2.26.0, < 2.26.2CVE List
n8n (npm)before 1.123.55, from 2.26.0 before 2.26.2, from 2.0.0-rc.0 before 2.25.7GitHub Advisory Database
n8n n8nbefore 1.123.55, from 2.0.0 before 2.25.7, from 2.26.0 before 2.26.2NVD

All scores

GitHub_M7.0high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
GitHub7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

n8n is an open source workflow automation platform. Prior to 1.123.55, 2.25.7, and 2.26.2, an authenticated user with workflow edit access could inject arbitrary JavaScript into the Chat Trigger's generated page by setting a malicious webhookId. When a logged-in user visited the chat URL, the injected code executed in the n8n origin with that user's session privileges. This vulnerability is fixed in 1.123.55, 2.25.7, and 2.26.2.

GitHub Advisory Database

Impact

An authenticated user with workflow edit access could inject arbitrary JavaScript into the Chat Trigger's generated page by setting a malicious webhookId. When a logged-in user visited the chat URL, the injected code executed in the n8n origin with that user's session privileges.

Patches

The issue has been fixed in n8n versions 1.123.55, 2.25.7, and 2.26.2. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

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

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Disable the Chat Trigger node by adding @n8n/n8n-nodes-langchain.chatTrigger to the NODES_EXCLUDE environment variable.

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

NVD (es)

n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de 1.123.55, 2.25.7 y 2.26.2, un usuario autenticado con acceso de edición de flujo de trabajo podría inyectar JavaScript arbitrario en la página generada del Chat Trigger al establecer un webhookId malicioso. Cuando un usuario con sesión iniciada visitaba la URL del chat, el código inyectado se ejecutaba en el origen de n8n con los privilegios de sesión de ese usuario. Esta vulnerabilidad está corregida en 1.123.55, 2.25.7 y 2.26.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54302 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-42h7-m79w-wvg5 changed 2026-07-20CC-BY-4.0
NVDCVE-2026-54302 changed 2026-10-26Public domain