CVE-2025-58177
JSON

5.4medium

n8n stored cross-site scripting in LangChain Chat Trigger node initialMessages parameter

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mvh4-2cm2-6hpg

Description

n8n is an open source workflow automation platform. From 1.24.0 to before 1.107.0, there is a stored cross-site scripting (XSS) vulnerability in @n8n/n8n-nodes-langchain.chatTrigger. An authorized user can configure the LangChain Chat Trigger node with malicious JavaScript in the initialMessages field and enable public access so that the payload is executed in the browser of any user who visits the resulting public chat URL. This can be used for phishing or to steal cookies or other sensitive data from users accessing the public chat link. The issue is fixed in version 1.107.0. Updating to 1.107.0 or later is recommended. As a workaround, the affected chatTrigger node can be disabled. No other workarounds are known.

Affected

Product or packageVersionsReported by
n8n-io n8n>= 1.24.0, < 1.107.0CVE List
n8n (npm)from 1.24.0 before 1.107.0GitHub Advisory Database
n8n n8nfrom 1.24.0 before 1.107.0NVD

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
GitHub4.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/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. From 1.24.0 to before 1.107.0, there is a stored cross-site scripting (XSS) vulnerability in @n8n/n8n-nodes-langchain.chatTrigger. An authorized user can configure the LangChain Chat Trigger node with malicious JavaScript in the initialMessages field and enable public access so that the payload is executed in the browser of any user who visits the resulting public chat URL. This can be used for phishing or to steal cookies or other sensitive data from users accessing the public chat link. The issue is fixed in version 1.107.0. Updating to 1.107.0 or later is recommended. As a workaround, the affected chatTrigger node can be disabled. No other workarounds are known.

GitHub Advisory Database
Impact

A stored Cross-Site Scripting (XSS) vulnerability was identified in the @n8n/n8n-nodes-langchain.chatTrigger node in n8n. If an authorized user configures the node with malicious JavaScript in the initialMessages field and enables public access, the script will be executed in the browser of anyone who visits the resulting public chat URL.

This vulnerability could be exploited for phishing or to steal cookies or other sensitive data from users who access the public chat link, posing a security risk.

Patches

This issue has been patched in version 1.107.0 of n8n. Users should upgrade to version 1.107.0 or later.

Workarounds

Disabling the n8n-nodes-langchain.chatTrigger node (docs)

References

#18148

NVD (es)

n8n es una plataforma de automatización de flujos de trabajo de código abierto. Desde 1.24.0 hasta antes de 1.107.0, existe una vulnerabilidad de cross-site scripting (XSS) almacenado en @n8n/n8n-nodes-langchain.chatTrigger. Un usuario autorizado puede configurar el nodo LangChain Chat Trigger con JavaScript malicioso en el campo initialMessages y habilitar el acceso público para que la carga útil se ejecute en el navegador de cualquier usuario que visite la URL de chat público resultante. Esto puede usarse para phishing o para robar cookies u otros datos sensibles de los usuarios que acceden al enlace de chat público. El problema está solucionado en la versión 1.107.0. Se recomienda actualizar a la versión 1.107.0 o posterior. Como solución alternativa, el nodo chatTrigger afectado puede deshabilitarse. No se conocen otras soluciones alternativas.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-58177 changed 2025-09-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-mvh4-2cm2-6hpg changed 2025-09-15CC-BY-4.0
NVDCVE-2025-58177 changed 2026-10-19Public domain