CVE-2025-58177
MEDIUM 5.4CVSS 3.1Stored XSS in n8n LangChain Chat Trigger Node via initialMessages Parameter
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.
- Published
- 15 Sep 2025
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-mvh4-2cm2-6hpg
- Sources
- NVDJSONOSV GHSA-mvh4-2cm2-6hpgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* |
>= 1.24.0, < 1.107.0 | 1.107.0 |
| OSV | npm | n8n | >= 1.24.0, < 1.107.0 | 1.107.0 |
References
- https://github.com/n8n-io/n8n/commit/d4ef191be0b39b65efa68559a3b8d5dad2e102b2 · Patch, WEB
- https://github.com/n8n-io/n8n/pull/18148 · Issue Tracking, WEB
- https://github.com/n8n-io/n8n/security/advisories/GHSA-mvh4-2cm2-6hpg · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-58177 · ADVISORY
- https://docs.n8n.io/hosting/securing/blocking-nodes · WEB
- https://github.com/n8n-io/n8n · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 15 Sep 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Sep 2025)