Executive brief
n8n is a workflow automation tool used to connect different software services. A security vulnerability allows an attacker to create a malicious workflow that, when opened by another user, can execute unauthorized code in their web browser. This could lead to the theft of sensitive session information or unauthorized actions being performed on behalf of the victim.
Technical details
A stored DOM-based Cross-Site Scripting (XSS) vulnerability exists in n8n's Resource Locator component. The application fails to validate the URI scheme of the 'cachedResultUrl' parameter before passing it to the 'window.open()' function. An attacker with workflow creation or editing privileges can inject a 'javascript:' payload into this parameter. When a victim opens the crafted workflow and interacts with the associated external links, the payload executes in the context of the victim's browser session. This issue is resolved in versions 1.123.64, 2.29.8, and 2.30.1.
Affected products
- n8n-io n8n < 1.123.64, >= 2.0.0-rc.0 < 2.29.8, >= 2.30.0 < 2.30.1
Timeline
- 2026-07-08: disclosed: Initial report to n8n-io/n8n
- 2026-07-22: advisory: GitHub Advisory published