Cross-site scripting in n8n - #VU137168

 

Cross-site scripting in n8n - #VU137168

Published: July 8, 2026


Vulnerability identifier: #VU137168
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: n8n
Affected software:
n8n

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary script in the victim's browser and access authenticated same-origin APIs.

The vulnerability exists due to cross-site scripting in the HTML preview iframe srcdoc handling when rendering execution output. A remote user can inject crafted content that bypasses sanitization to execute arbitrary script in the victim's browser and access authenticated same-origin APIs.

User interaction is required to open the preview, and the injected script runs same-origin as the editor.


Remediation

Install security update from vendor's website.

Sources