CVE-2025-58177: n8n stored cross-site scripting in LangChain Chat Trigger initialMessages
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-58177
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- n8nnpmDeclares an LLM dependency
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online