Skip to main content

n8n CVE-2026-65597

| EUVDEUVD-2026-47641 HIGH
Cross-site Scripting (XSS) (CWE-79)
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as global:member user
  2. Delivery
    Craft workflow output with sanitizer-bypass HTML/JS
  3. Exploit
    Victim opens HTML preview
  4. Execution
    Script runs same-origin in editor iframe
  5. Persist
    Call authenticated APIs with victim session
  6. Impact
    Take over workflows and exfiltrate data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated account with global:member privileges to plant the payload (PR:L), and a victim must actively open the HTML preview that renders the malicious execution output (UI:A) - it is not fully automatic. The core enabling condition is n8n's HTML preview rendering output into an <iframe srcdoc> without the sandbox attribute, combined with a bypass of the output sanitizer, so the injected script runs same-origin as the editor. Limiting factors: the attacker needs valid member-level credentials (most relevant to shared, multi-user, or multi-tenant deployments), the victim must open the specific preview, and instances running the fixed versions (1.123.64 / 2.29.8 / 2.30.1) are not vulnerable. Single-user self-hosted instances have little practical exposure since attacker and victim would be the same person.

Impact

The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N, score 8.2 High) is internally consistent with the description: network-reachable, low complexity, but requiring a low-privileged authenticated account (PR:L, i.e., global:member) and active victim interaction (UI:A, the victim must open the preview). The high vulnerable- and subsequent-system confidentiality (VC:H/SC:H) reflects same-origin session and API access. No EPSS score, KEV listing, or POC was provided, so real-world exploitation likelihood cannot be quantified from the input - this is not confirmed actively exploited and no public exploit is identified. Practical risk is moderated by two genuine gating factors: the attacker must already hold a valid member account (relevant mainly to multi-tenant or shared n8n instances), and a higher-privileged victim must open the malicious preview. On a single-admin self-hosted instance the attack surface is minimal; on shared/team deployments it is a credible privilege-escalation and data-exposure path. Treat as a real priority for multi-user n8n instances and lower urgency for single-user deployments.

Exploit ScenarioDerived

A user holding a low-privileged global:member account crafts a workflow node whose execution output contains a sanitizer-bypassing HTML/script payload. When a higher-privileged colleague or admin opens the HTML preview of that execution, the script executes in the editor's own origin and silently calls authenticated n8n APIs with the victim's session to exfiltrate credentials, alter workflows, or escalate access. No public exploit code is currently identified, but the described sanitizer bypass and missing iframe sandbox make the technique straightforward to reproduce.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 22, 2026

DOM-based cross-site scripting in n8n's HTML preview lets an authenticated global:member user execute JavaScript in the editor's same origin when a victim opens the preview. Because execution output is rendered into an iframe srcdoc without the sandbox attribute and a sanitizer bypass defeats the filtering, injected script runs same-origin and can invoke authenticated APIs using the victim's session, enabling account and workflow takeover. No public exploit identified at time of analysis; the flaw was reported by VulnCheck and is fixed in n8n 1.123.64, 2.29.8, and 2.30.1.

RemediationAI

Vendor-released patch: upgrade to n8n 1.123.64, 2.29.8, or 2.30.1 (whichever matches your release line) per advisory GHSA-p3rg-hrf9-w9gj (https://github.com/n8n-io/n8n/security/advisories/GHSA-p3rg-hrf9-w9gj). Until patched, reduce exposure by tightening membership on shared instances - audit and remove untrusted global:member accounts and restrict who can author workflows or nodes whose output others will preview, since the attack requires a member-level account to plant the payload. Avoid opening HTML previews of workflows or executions authored by untrusted users, and where feasible front the editor with a strict Content-Security-Policy that disallows inline script execution to blunt DOM XSS (note this may break legitimate UI features and does not fully substitute for the fix). These are compensating controls only; applying the patched version is the reliable remedy.

Affected VersionsENISA

n8n 0 <1.123.64
n8n 0 <2.30.1
n8n 0 <2.29.8

Affected Packages

npm n8n fix: 1.123.64, 2.29.8, 2.30.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

n8n is a self-hostable, source-available workflow automation platform (Node.js/Vue front end) where nodes produce execution output that users can render via an HTML preview. The preview embeds output into an <iframe srcdoc=...> but omits the sandbox attribute, so the framed document inherits the parent editor's origin and privileges instead of being isolated. Combined with a bypass of the output sanitizer, this yields CWE-79 (Improper Neutralization of Input During Web Page Generation). The missing sandbox is the pivotal control failure: with sandboxing, injected markup would run in an opaque, script-restricted origin; without it, the injected script shares the editor session and cookies, escalating a contained XSS into a same-origin API-abuse primitive. CPE data (cpe:2.3:a:n8n-io:n8n:*) confirms the affected product is the n8n-io n8n application across all listed version ranges.

Know when N8n gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
vuln.today AI 7.6 HIGH

Authenticated member account (PR:L) and victim opening the preview (UI:R); injected script escapes the iframe into the editor origin, so S:C with high confidentiality and low integrity impact, no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 22, 2026 - 13:02 EUVD
CVE Published
Jul 22, 2026 - 11:21 cve.org
HIGH 8.2

DescriptionCVE.org

n8n before 1.123.64, 2.x before 2.29.8, and before 2.30.1 contains a DOM-based cross-site scripting vulnerability in the HTML preview, which renders execution output into an iframe srcdoc without the sandbox attribute. A sanitizer bypass allows injected script to execute same-origin as the editor. When a victim opens the preview, the script can call authenticated APIs using the victim's session. An account with global:member privileges can exploit the issue.

Executive ViewAI

Why It Matters

n8n workflow automation platform contains a cross-site scripting vulnerability in its HTML preview feature allowing authenticated users to hijack victim sessions and seize control of workflows and accounts. Although no public exploit identified at time of analysis, the vulnerability's reproducibility creates urgency; organizations relying on n8n for business-critical automation must prioritize patching to prevent unauthorized workflow execution and account takeover.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade to n8n 1.123.64, 2.29.8, or 2.30.1. Until patched, restrict HTML preview feature to administrative users and audit global:member role assignments for least privilege.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Medium
popular self-hosted workflow automation tool, common but not ubiquitous
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in N8n

View all
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2026-21877 CRITICAL POC
9.9 Jan 08

n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with

CVE-2026-21858 CRITICAL POC
10.0 Jan 08

n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical

CVE-2026-1470 CRITICAL POC
9.9 Jan 27

n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft

CVE-2025-65964 CRITICAL POC
9.4 Dec 09

Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin

CVE-2026-33696 CRITICAL POC
9.4 Mar 25

A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti

CVE-2026-33660 CRITICAL POC
9.4 Mar 25

An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-33665 HIGH POC
8.8 Mar 25

Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP

CVE-2023-27563 HIGH POC
8.8 May 10

The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability

CVE-2026-33713 HIGH POC
8.7 Mar 25

SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute

CVE-2026-0863 HIGH POC
8.5 Jan 18

Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy