CVE-2025-58177 n8n stored cross-site scripting in LangChain Chat Trigger node initialMessages parameter
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| n8n | >= 1.24.0, < 1.107.0 | 1.107.0 | Fixed |
| npm n8n(npm) | >= 1.24.0, < 1.107.0 | 1.107.0 | Fixed |
| n8n-io n8n | = >= 1.24.0, < 1.107.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm n8n(npm) | >= 1.24.0, < 1.107.0 | 1.107.0 |
| n8n-io n8n | = >= 1.24.0, < 1.107.0 | No fix listed |
| n8n | >= 1.24.0, < 1.107.0 | 1.107.0 |
References
- https://github.com/n8n-io/n8n/security/advisories/GHSA-mvh4-2cm2-6hpg vendor-advisory
- https://github.com/n8n-io/n8n/pull/18148 issue-tracking patch
- https://github.com/n8n-io/n8n/commit/d4ef191be0b39b65efa68559a3b8d5dad2e102b2 patch
- docs.n8n.io
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product