CVE-2025-58177: n8n stored cross-site scripting in LangChain Chat Trigger node initialMessages parameter
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
Other sources
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.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-58177?
CVE-2025-58177 has a medium severity rating, impacting the security of n8n versions between 1.24.0 and before 1.107.0.
How do I fix CVE-2025-58177?
To fix CVE-2025-58177, upgrade your n8n installation to version 1.107.0 or later.
What type of vulnerability is CVE-2025-58177?
CVE-2025-58177 is a stored cross-site scripting (XSS) vulnerability affecting specific n8n nodes.
Who is affected by CVE-2025-58177?
Users of n8n that are operating versions from 1.24.0 to before 1.107.0 are affected by CVE-2025-58177.
Can an attacker exploit CVE-2025-58177 without authentication?
No, CVE-2025-58177 requires an authorized user to exploit the stored XSS vulnerability.