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

Published Sep 15, 2025
·
Updated

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

Patches This issue has been patched in version 1.107.0 of n8n. Users should upgrade to version 1.107.0 or later.

Workarounds Disabling the n8n-nodes-langchain.chatTrigger node (docs)

References #18148

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
n8n n8n>=1.24.0<1.107.0
npm/n8n>=1.24.0<1.107.0
1.107.0
n8n N8n Node.js>=1.24.0<1.107.0

Event History

Sep 15, 2025
CVE Published
via MITRE·04:49 PM
Data Sourced
via MITRE·04:49 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·05:14 PM
Data Sourced
via GitHub·05:14 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-58177?

CVE-2025-58177 has a medium severity rating, impacting the security of n8n versions between 1.24.0 and before 1.107.0.

2

How do I fix CVE-2025-58177?

To fix CVE-2025-58177, upgrade your n8n installation to version 1.107.0 or later.

3

What type of vulnerability is CVE-2025-58177?

CVE-2025-58177 is a stored cross-site scripting (XSS) vulnerability affecting specific n8n nodes.

4

Who is affected by CVE-2025-58177?

Users of n8n that are operating versions from 1.24.0 to before 1.107.0 are affected by CVE-2025-58177.

5

Can an attacker exploit CVE-2025-58177 without authentication?

No, CVE-2025-58177 requires an authorized user to exploit the stored XSS vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203