GitHub Advisoryadvisory · npm

GHSA-mvh4-2cm2-6hpg Stored XSS in n8n LangChain Chat Trigger Node via initialMessages Parameter

MEDIUM Published 2025-09-15 Modified 2025-09-15 Official page ↗
Aliases
CVE-2025-58177
Ecosystem
npm
Packages
n8n
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
Weaknesses
CWE-79
Reviewed
2025-09-15

Affected packages

• npm n8n: >= 1.24.0, < 1.107.0 → fixed in 1.107.0

Description

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

Related

Alias · CVE (1)

  • CVE-2025-58177 n8n is an open source workflow automation platform. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References