CVE-2026-65597: DOM-based XSS in n8n HTML Preview
- Vendor
- N8n
CVE-2026-65597 is a DOM-based cross-site scripting vulnerability in n8n affecting versions before 1.123.64, 2.x before 2.29.8, and before 2.30.1. The flaw is in the HTML preview functionality, which renders execution output into an iframe using srcdoc without applying the sandbox attribute. A sanitizer bypass allows attacker-controlled script to execute in the same-origin context as the editor. When a user opens the preview, the injected script runs within the authenticated application context and can interact with application functionality through the victim's browser session.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows attacker-supplied JavaScript to execute same-origin in the victim's n8n editor context. This enables authenticated API actions using the victim's active session, which can result in unauthorized access to data and actions available to that user within the application. Because the script executes in the trusted application origin, the impact can include compromise of confidentiality and unauthorized manipulation of workflows or other accessible resources.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, limit access to the n8n instance to fully trusted users only, configure the N8N_CONTENT_SECURITY_POLICY environment variable to enforce a policy that blocks inline script execution, and avoid allowing untrusted or externally controlled content to be rendered through the HTML node or binary HTML preview. These measures reduce exposure but do not fully eliminate the vulnerability.
Remediation
Patch, then assume compromise.
Upgrade n8n to a fixed release: 1.123.64 or later on the 1.x branch, 2.29.8 or later on affected 2.x branches, or 2.30.1 or later as applicable to the deployment branch.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-65597 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-65597 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-65597?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-65597.
- Is there a patch for CVE-2026-65597?
- Upgrade n8n to a fixed release: 1.123.64 or later on the 1.x branch, 2.29.8 or later on affected 2.x branches, or 2.30.1 or later as applicable to the deployment branch.
- What products are affected by CVE-2026-65597?
- N8n.
- How severe is CVE-2026-65597?
- CVE-2026-65597 has a CVSS v4 score of 8.2 (High) and an EPSS score of 0.30% (22nd percentile) as of Sep 25, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.