VDB
Sign up
MEDIUM4.1

GHSA-mvh4-2cm2-6hpg

Stored XSS in n8n LangChain Chat Trigger Node via initialMessages Parameter

Quick fix

GHSA-mvh4-2cm2-6hpg — n8n: upgrade to the fixed version with the command below.

npm install n8n@1.107.0

Details

### 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

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/n8n
Introduced in: 1.24.0Fixed in: 1.107.0
Fixnpm install n8n@1.107.0

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/n8n"]}'