mediumCVSS 5.4NVD status: Analyzed

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.

Componentn8n
Severitymedium (CVSS 5.4)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Published (NVD)2026-07-22
Last modified2026-07-27
Affected versions
n8n < 1.123.64
n8n < 1.123.64
n8n >= 2.0.0, < 2.29.8
n8n >= 2.0.0, < 2.29.8
n8n = 2.30.0
n8n = 2.30.0
Fixed in1.123.64, 2.29.8
WeaknessCWE-79
CISA KEVnot listed

NVD description

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.

Does CVE-2026-65597 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for n8n.
Check my stack

What to do

  • Upgrade n8n to 1.123.64 or later (or the patched release of your branch: 2.29.8).
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more

Other n8n CVEs

All n8n CVEs