Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. n8n
  4. ›
  5. CVE-2025-58177

CVE-2025-58177: Stored XSS in n8n LangChain Chat Trigger Node via initialMessages Parameter

September 15, 2025

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.

References

  • docs.n8n.io/hosting/securing/blocking-nodes
  • github.com/advisories/GHSA-mvh4-2cm2-6hpg
  • github.com/n8n-io/n8n
  • github.com/n8n-io/n8n/commit/d4ef191be0b39b65efa68559a3b8d5dad2e102b2
  • github.com/n8n-io/n8n/pull/18148
  • github.com/n8n-io/n8n/security/advisories/GHSA-mvh4-2cm2-6hpg
  • nvd.nist.gov/vuln/detail/CVE-2025-58177

Code Behaviors & Features

Detect and mitigate CVE-2025-58177 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.24.0 before 1.107.0

Fixed versions

  • 1.107.0

Solution

Upgrade to version 1.107.0 or above.

Impact 4.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/n8n/CVE-2025-58177.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:54 +0000.