A high-severity DOM-based XSS flaw tracked as CVE-2026-65597 affects n8n's HTML preview feature, where execution output is rendered into an iframe using srcdoc without a sandbox attribute. The weakness allows a sanitizer bypass and same-origin script execution in the editor context, enabling an attacker to trigger authenticated actions through a victim's active session. The issue affects n8n before 1.123.64, 2.x before 2.29.8, and versions before 2.30.1.
An attacker with global:member privileges can create or modify a workflow so a malicious payload is stored in execution output and later executed when an administrator opens the HTML preview panel. Reports say the injected script can access the parent window, steal session data from localStorage or cookies, and exfiltrate it to an attacker-controlled server, effectively enabling session hijacking and API abuse. The vendor mitigated the flaw by sandboxing the iframe in the patched implementation.

See affected versions and whether adversaries are exploiting it.
1 event from the most recent confirmed update back to the earliest known activity.
A DOM-based XSS vulnerability in n8n's HTML preview feature was disclosed, describing how an unsandboxed same-origin iframe srcdoc could allow a global:member user to execute script in the editor context and abuse an authenticated victim's session. The issue affects n8n versions before 1.123.64, 2.x before 2.29.8, and versions before 2.30.1, with mitigation described as adding iframe sandboxing.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
2 references tracked. Mallory keeps watching after this page renders.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.