Vulnerabilities · 2025 · N8n
CVE-2025-58177
N8n vulnerability
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.
Affected products
N8n. The exact versions are in the references.
What to do now
- Check your exposureFind out whether N8n runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/n8n-io/n8n/security/advisories/GHSA-mvh4-2cm2-6hpg · Vendor Advisory
- github.com/n8n-io/n8n/commit/d4ef191be0b39b65efa68559a3b8d5dad2e102b2 · Patch
- github.com/n8n-io/n8n/pull/18148
- docs.n8n.io/hosting/securing/blocking-nodes
- nvd.nist.gov/vuln/detail/CVE-2025-58177
- github.com/advisories/GHSA-mvh4-2cm2-6hpg
- nvd.nist.gov/vuln/detail/CVE-2025-58177
- cve.org/CVERecord?id=CVE-2025-58177
More vulnerabilities in N8n products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.