Stored XSS in n8n LangChain Chat Trigger Node via initialMessages Parameter
CVE-2025-58177 · GHSA-mvh4-2cm2-6hpg · published 2025-09-15
- Severity
- Medium
- CVSS score
- 4.1
- Chance of exploitation (EPSS)
- 0.25%
- Fixed in
- 1.107.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
Upgrade n8n to 1.107.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
This issue has been patched in version 1.107.0 of n8n. Users should upgrade to version 1.107.0 or later.
Disabling the n8n-nodes-langchain.chatTrigger node (docs)
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| n8n | npm | >= 1.24.0, < 1.107.0 | 1.107.0 |
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- CriticalMalicious website can execute commands on the local system through XSS in the OpenCode web UIopencode-ai
- CriticalFlowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panelflowise
- CriticalMLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Executionmlflow
- CriticalCross-site Scripting in MLFlowmlflow
- HighPraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threatspraisonai
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- Criticaln8n Has an Arbitrary File Read via Git Noden8n, n8n, n8n
- Criticaln8n: HTTP Request Node Pagination Prototype Pollution to RCEn8n, n8n, n8n
- Criticaln8n Has an XML Node Prototype Pollution Patch Bypassn8n, n8n, n8n
- Criticaln8n has XML Node Prototype Pollution that to RCEn8n, n8n, n8n
- Criticaln8n has Prototype Pollution in XML Webhook Body Parser that Leads to RCEn8n, n8n, n8n
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.