Description
n8n before 1.123.64, 2.29.8, and 2.30.1 contains a stored DOM cross-site scripting vulnerability in the Resource Locator component, which passes the workflow-persisted cachedResultUrl parameter to window.open() without scheme validation. An attacker with workflow creation/editing privileges can craft a workflow with a malicious (e.g., javascript:) scheme in cachedResultUrl; when a victim opens the crafted workflow and interacts with external links, the payload executes in the victim's browser.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| n8n-io | n8n | < 1.123.64, 2.30.0 – < 2.30.1, 2.0.0-rc.0 – < 2.29.8 | 1.123.64 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | n8n | < 1.123.64 | 1.123.64 | GHSA-9wcp-9r3j-383q |
| npm | n8n | >= 2.30.0, < 2.30.1 | 2.30.1 | GHSA-9wcp-9r3j-383q |
| npm | n8n | >= 2.0.0-rc.0, < 2.29.8 | 2.29.8 | GHSA-9wcp-9r3j-383q |
References
- GitHub Security Advisory (GHSA-9wcp-9r3j-383q) vendor-advisory
- VulnCheck Advisory: n8n before 1.123.64 Stored DOM XSS via cachedResultUrl third-party-advisory