Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilityidentity-authentication-vulnerabilitywidely-deployed-product-advisoryprivilege-escalation-method

n8n HTML Preview XSS Lets Low-Privilege Users Hijack Admin Sessions

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 22, 2026

n8n HTML Preview XSS Lets Low-Privilege Users Hijack Admin Sessions

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

1 event · Jul 22, 2026
  1. Jul 22, 20264mo ago

    CVE-2026-65597 disclosed for n8n HTML preview XSS

    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.

    CVE-2026-65597 - n8n before 1.123.64 DOM-Based XSS via Unsandboxed iframe
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
N8nN8N

Organizations

1 linked
N8n
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.