n8n
Affected
- introduced
1.24.0, fixed1.107.0(semver)
Fixed versions
1.107.0
Fix
- Fixed version
1.107.0npm install [email protected]
Advisory
Also known as: CVE-2025-58177
Stored XSS in n8n LangChain Chat Trigger Node via 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
Medium Basis: The source's own band: MODERATE
1.24.0, fixed 1.107.0 (semver)1.107.0
1.107.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0