Skip to main content
VulnerabilityPublished

N8n: Duplicate Advisory: DOM-Based XSS via Unsandboxed iframe srcdoc in HTML Preview

Affects n8nSource GCVE Database

0

CVSS 8.2 High.

Data as of 23 Jul 2026, 00:11 UTC

CVSS 4.0 base score
8.2High
How severe the flaw is on the 0–10 CVSS scale.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What to do

Affected software

ProductAffectedFixed in
npmn8nAffected–Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Users should upgrade to versions 1.123.64 or later, 2.29.8 or later, or 2.30.1 or later once official fixes are available. Until patched, restrict access to trusted users with global:member privileges and avoid opening untrusted HTML previews.

Description

n8n versions before 1.123.64, 2.x before 2.29.8, and before 2.30.1 contain a DOM-based cross-site scripting (XSS) vulnerability in the HTML preview feature. The vulnerability arises because the execution output is rendered into an iframe srcdoc without the sandbox attribute, allowing a sanitizer bypass that enables injected scripts to execute with the same origin as the editor. An attacker with global:member privileges can exploit this by causing a victim to open the preview, enabling the injected script to call authenticated APIs using the victim's session.

References

Community reviews

Loading reviews…