Cross-site scripting in n8n - CVE-2026-65597

 

Cross-site scripting in n8n - CVE-2026-65597

Published: July 8, 2026 / Updated: September 14, 2026


Vulnerability identifier: #VU137168
CSH Severity: Low
CVSS v4: 5.1 [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]
CVE-ID: CVE-2026-65597
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

n8n

How to mitigate CVE-2026-65597

Install security update from vendor's website.

n8n - addressed in versions 1.123.64, 2.29.8, 2.30.1

External References

Related Security Bulletins