CVE-2026-65597: n8n DOM-based XSS in HTML preview

CVE-2026-65597 · Severity: high · CVSS 4 · Published 2026-07-22

n8n is a workflow automation tool used to connect different software services. A security vulnerability in its HTML preview feature allows a malicious user to execute unauthorized commands. If a victim views a specially crafted preview, the attacker can hijack their session to access sensitive data or perform actions on their behalf within the n8n platform.

Technologies: N8n, n8n (npm). Vendors: N8n, npm.

Quick answers

Is CVE-2026-65597 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-65597 being exploited in the wild.
How severe is CVE-2026-65597?
High severity, with a CVSS score of 4, published 22 July 2026.
Which products and versions are affected?
N8n < 1.123.64, >= 2.0.0-rc.0 < 2.29.8, >= 2.30.0 < 2.30.1, < 1.123.64, 2.x < 2.29.8, < 2.30.1; n8n (npm) SEMVER:introduced=0,fixed=1.123.64.
Is there a fix for CVE-2026-65597?
Yes. n8n (npm): upgrade to 1.123.64 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-65597 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-65597?
Check whether you run N8n or n8n (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • n8n (npm): upgrade to 1.123.64 or later
    npm install n8n@1.123.64

Technical details

A DOM-based Cross-Site Scripting (XSS) vulnerability exists in n8n's HTML previewer. The application renders execution output into an 'iframe srcdoc' without the 'sandbox' attribute. By bypassing the HTML sanitizer, an attacker can inject malicious JavaScript that executes within the same origin as the n8n editor. Exploitation requires the attacker to have 'global:member' privileges to create the malicious workflow and requires a victim to view the HTML preview. Once triggered, the script can make authenticated API calls using the victim's active session. The issue is resolved in versions 1.123.64, 2.29.8, and 2.30.1.

Affected products

  • n8n-io n8n < 1.123.64, >= 2.0.0-rc.0 < 2.29.8, >= 2.30.0 < 2.30.1

Identifiers

  • CVE-2026-65597
  • GHSA-p3rg-hrf9-w9gj

Timeline

  • 2026-07-08: disclosed
  • 2026-07-22: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.