CVE-2026-65597

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductN8n
PublishedJul 22, 2026
First seenJul 22, 2026

How to fix

Update
  • n8n n8n1.123.64, 2.29.8 or later
  • n8n1.123.64, 2.30.1, 2.29.8 or later

Affected products

ProductAffected versionsFixed in
n8n n8nv < 1.123.64, 2.0.0 ≤ v < 2.29.8, 2.30.01.123.64, 2.29.8
n8nnpmv < 1.123.64, 2.30.0 ≤ v < 2.30.1, 2.0.0-rc.0 ≤ v < 2.29.81.123.64, 2.30.1, 2.29.8

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.