# CVE-2025-58177: n8n stored cross-site scripting in LangChain Chat Trigger node initialMessages parameter

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-09-15T16:49:06.949Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-mvh4-2cm2-6hpg
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- n8n-io n8n: >= 1.24.0, < 1.107.0
- n8n (npm): from 1.24.0 before 1.107.0
- n8n n8n: from 1.24.0 before 1.107.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.1 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N`

## References

- <https://github.com/n8n-io/n8n/security/advisories/GHSA-mvh4-2cm2-6hpg> (vendor-advisory, web)
- <https://github.com/n8n-io/n8n/pull/18148> (issue-tracking, web)
- <https://github.com/n8n-io/n8n/commit/d4ef191be0b39b65efa68559a3b8d5dad2e102b2> (patch, 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)

## Sources

- CVE List: [CVE-2025-58177](https://www.cve.org/CVERecord?id=CVE-2025-58177), CVE Terms of Use, modified 2025-09-15
- GitHub Advisory Database: [GHSA-mvh4-2cm2-6hpg](https://github.com/advisories/GHSA-mvh4-2cm2-6hpg), CC-BY-4.0, modified 2025-09-15
- NVD: [CVE-2025-58177](https://nvd.nist.gov/vuln/detail/CVE-2025-58177), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-58177 · Whole record: https://cve.day/CVE-2025-58177.json · Rebuilt by cve.day 2026-11-25T22:59:04.665Z
