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.