XSS in N8n
CVE-2026-65597
n8n before 1.123.64, 2.x before 2.29.8, and before 2.30.1 contains a DOM-based cross-site scripting vulnerability in the HTML preview, which renders execution output into an iframe srcdoc without the sandbox attribute. A sanitizer bypass allows injected script to execute same-origin as the editor. When a victim opens the preview, the script can call authenticated APIs using the victim's session. An account with global:member privileges can exploit the issue.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.002 (11.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
Affected products
- N8n — versions 2.30.0
- N8n-io N8n — versions 0, 1.123.64, 2.30.1
Weakness classification (CWE)
References
- disclosure@vulncheck.com (vendor-advisory, Mitigation, Vendor Advisory)
- disclosure@vulncheck.com (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2026-65597?
- CVE-2026-65597 is a medium-severity vulnerability in N8n, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2026-07-22.
- How severe is CVE-2026-65597?
- Medium severity. CVSS v3 base score is 5.4 out of 10.