Skip to content
MediumVulnerability

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

Identifier
CVE-2025-58177
Published
Record updated
View JSON
Affected
  • n8n >= 1.24.0, < 1.107.0
Fixed in
1.107.0
  • released August 11, 2025, 35 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

A stored cross-site scripting flaw affects the chatTrigger node in @n8n/n8n-nodes-langchain, part of the n8n workflow automation platform, in versions from 1.24.0 to before 1.107.0. An authorized user can place malicious JavaScript in the initialMessages field and enable public access, so the script runs in the browser of anyone who opens the public chat URL. The attacker can use this for phishing or to steal cookies and other sensitive data.

Mitigation

Fixed in 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.