{"id":"CVE-2025-58177","aliases":["CVE-2025-58177","GHSA-mvh4-2cm2-6hpg"],"related":[],"kind":"vulnerability","state":"published","title":"n8n stored cross-site scripting in LangChain Chat Trigger node initialMessages parameter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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.\n\nThis 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.\n\n### Patches\nThis issue has been patched in version 1.107.0 of n8n. Users should upgrade to version 1.107.0 or later.\n\n### Workarounds\nDisabling the `n8n-nodes-langchain.chatTrigger` node ([docs](https://docs.n8n.io/hosting/securing/blocking-nodes/))\n\n### References\n#18148","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-15T16:49:06.949Z","modified":"2026-10-19T17:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N","score":4.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 1.24.0, < 1.107.0","status":"affected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.24.0","status":"affected","fixed":"1.107.0"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.24.0","fixed":"1.107.0"}],"vendor":"n8n","product":"n8n","cpe":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-mvh4-2cm2-6hpg","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/n8n-io/n8n/pull/18148","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/n8n-io/n8n/commit/d4ef191be0b39b65efa68559a3b8d5dad2e102b2","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58177","tags":["advisory"],"sources":["ghsa"]},{"url":"https://docs.n8n.io/hosting/securing/blocking-nodes","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-15T17:26:58.176Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58177","url":"https://www.cve.org/CVERecord?id=CVE-2025-58177","licence":"CVE Terms of Use","modified":"2025-09-15T17:27:13.707Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mvh4-2cm2-6hpg","url":"https://github.com/advisories/GHSA-mvh4-2cm2-6hpg","licence":"CC-BY-4.0","modified":"2025-09-15T20:07:54.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58177","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58177","licence":"Public domain","modified":"2026-10-19T17:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:04.665Z","epss":{"score":0.00253,"percentile":0.17934,"date":"2026-12-01T12:00:22.000Z"}}