VDB
EN
MEDIUM 4.1

GHSA-mvh4-2cm2-6hpg

Stored XSS in n8n LangChain Chat Trigger Node via initialMessages Parameter

상세

### 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](https://docs.n8n.io/hosting/securing/blocking-nodes/))

### References #18148

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

npm / n8n
최초 영향 버전: 1.24.0 수정 버전: 1.107.0
수정 npm install n8n@1.107.0

참고