CVE-2025-58177
JavaScript Análise e mitigação de vulnerabilidades

Visão geral

A stored cross-site scripting (XSS) vulnerability was identified in n8n, an open source workflow automation platform, affecting versions 1.24.0 to before 1.107.0. The vulnerability (CVE-2025-58177) exists in the @n8n/n8n-nodes-langchain.chatTrigger component, where an authorized user could configure the LangChain Chat Trigger node with malicious JavaScript in the initialMessages field and enable public access (GitHub Advisory).

Detalhes técnicos

The vulnerability stems from insufficient sanitization of the initialMessages parameter in the ChatTrigger.webhook method. When a malicious payload is injected into the initialMessages field, it gets embedded into a JavaScript configuration object within the generated HTML page through the createPage function. The CVSS v3.1 base score is 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, indicating network accessibility, low attack complexity, and required user interaction (NVD).

Impacto

When exploited, the vulnerability allows the payload to be executed in the browser of any user who visits the resulting public chat URL. This can be leveraged for phishing attacks or to steal cookies and other sensitive data from users accessing the public chat link (GitHub Advisory).

Mitigação e soluções alternativas

The vulnerability has been patched in version 1.107.0 of n8n. Users are recommended to upgrade to version 1.107.0 or later. As a temporary workaround, users can disable the affected chatTrigger node. The fix includes implementing comprehensive sanitization using the sanitize-html library and removing dangerous protocols like javascript:, data:, and vbscript: (GitHub PR).

Recursos adicionais


OrigemEste relatório foi gerado usando IA

Relacionado JavaScript Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploração do CISA KEV

Tem correção

Data de publicação

CVE-2025-68665HIGH8.6
  • JavaScriptJavaScript
  • langchain
NãoSimDec 23, 2025
CVE-2025-68475HIGH7.5
  • JavaScriptJavaScript
  • @fedify/fedify
NãoSimDec 22, 2025
CVE-2025-68278HIGH7.3
  • JavaScriptJavaScript
  • @tinacms/cli
NãoSimDec 18, 2025
GHSA-24v3-254g-jv85LOW2.1
  • JavaScriptJavaScript
  • @tutao/tutanota-utils
NãoSimDec 19, 2025
CVE-2025-68457LOW1.7
  • JavaScriptJavaScript
  • orejime
NãoSimDec 19, 2025

Avaliação de vulnerabilidade gratuita

Compare sua postura de segurança na nuvem

Avalie suas práticas de segurança na nuvem em 9 domínios de segurança para comparar seu nível de risco e identificar lacunas em suas defesas.

Solicitar avaliação

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adão FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades