Skip to main content

n8n CVE-2026-54301

| EUVDEUVD-2026-38475 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-06-16 https://github.com/n8n-io/n8n GHSA-v733-mwr6-fgcm
7.0
CVSS 4.0 · Vendor: https://github.com/n8n-io/n8n
View

Attack ChainAIDerived

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

  1. Recon
    Obtain workflow-edit account on n8n
  2. Delivery
    Craft Respond to Webhook node with malicious binary payload and Content-Type
  3. Exploit
    Publish public webhook URL
  4. Install
    Lure authenticated higher-privileged user to visit URL
  5. C2
    CSP sandbox bypassed on binary path
  6. Execute
    JavaScript executes in n8n origin
  7. Impact
    Hijack victim session and act as victim

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 n8n account with workflow edit permissions to create or modify a Respond to Webhook node, and requires a separate authenticated n8n user (typically a higher-privileged operator) to visit the resulting public webhook URL in a browser session that holds n8n cookies. Limiting factors per CVSS 4.0 are PR:L (low-privilege authentication needed on the attacker side) and UI:P (passive user interaction on the victim side), and the vulnerable code path is specifically the binary response handler of the n8n-nodes-base.respondToWebhook node; instances running n8n 1.123.55, 2.25.7, 2.26.2, or later are not exploitable, and instances that have set n8n-nodes-base.respondToWebhook in NODES_EXCLUDE have the node disabled.

Impact

The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N (score 7.0) accurately reflects a network-reachable, low-complexity attack that nonetheless requires both attacker authentication with workflow-edit rights and passive victim interaction, which materially limits mass exploitation. There is no CISA KEV listing and no public exploit identified at time of analysis, and no EPSS score was supplied. The realistic risk is highest in multi-tenant or shared n8n deployments where workflow-edit access is delegated beyond the most trusted operators, since any such user can pivot to session takeover of an admin who merely visits the malicious webhook URL; in single-operator self-hosted instances, exploitability is largely self-contained.

Exploit ScenarioDerived

An attacker with a low-privileged but workflow-edit-capable n8n account creates a workflow whose Respond to Webhook node returns binary content with an attacker-chosen Content-Type that browsers interpret as HTML or script. The attacker then sends the public webhook URL to a higher-privileged authenticated n8n user (for example, an administrator) and, when that user visits the link, attacker JavaScript executes in the n8n origin and can read session tokens or perform actions on the victim's behalf. No public exploit identified at time of analysis.

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

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

Alert me

AnalysisAIv5 – Jun 23, 2026

Same-origin cross-site scripting in n8n workflow automation platform allows an authenticated user with workflow edit privileges to weaponize the Respond to Webhook node and execute JavaScript in another authenticated user's session. The binary response path bypassed the central Content-Security-Policy sandbox header, letting attacker-controlled Content-Type serve executable content from the n8n origin. No public exploit identified at time of analysis, and the flaw is not listed in CISA KEV.

Earlier versions of this analysis (4)
v4 Jun 23, 2026 - 18:43 cvss changed CVSS 7.0

Same-origin cross-site scripting in n8n workflow automation platform allows authenticated workflow editors to weaponize the Respond to Webhook node by serving binary responses with attacker-controlled Content-Type that bypass the platform's central Content-Security-Policy sandbox. When a victim user visits the public webhook URL, JavaScript executes in the n8n origin and inherits the victim's session, enabling account takeover within the instance. No public exploit identified at time of analysis, but vendor-released patches are available in 1.123.55, 2.25.7, and 2.26.2.

v3 Jun 23, 2026 - 18:42 cvss changed CVSS 7.0

Same-origin cross-site scripting in n8n workflow automation platform allows an authenticated user with workflow edit privileges to execute arbitrary JavaScript in the n8n origin against any authenticated victim who visits a crafted public webhook. The flaw stems from the Respond to Webhook node's binary response path bypassing the central Content-Security-Policy sandbox header, enabling attacker-controlled Content-Type values. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.

v2 Jun 23, 2026 - 18:42 cvss changed CVSS 7.0

Same-origin cross-site scripting in n8n workflow automation platform allows an authenticated user with workflow edit privileges to weaponize the Respond to Webhook node by serving binary content with an attacker-controlled Content-Type, bypassing the central Content-Security-Policy sandbox. When another authenticated user visits the resulting public webhook URL, JavaScript executes in the n8n origin with access to that victim's session. No public exploit identified at time of analysis, but a vendor advisory and patched releases (1.123.55, 2.25.7, 2.26.2) are published.

v1 Jun 16, 2026 - 19:50 CVSS 7.6

Same-origin cross-site scripting in n8n workflow automation platform allows an authenticated user with workflow edit privileges to abuse the Respond to Webhook node and execute JavaScript in the n8n origin against any authenticated user who visits the malicious webhook URL. The binary response code path bypassed the central Content-Security-Policy sandbox header, letting the attacker set an arbitrary Content-Type and deliver script payloads that run with the victim's session. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.

RemediationAI

Vendor-released patches are available: upgrade to n8n 1.123.55, 2.25.7, or 2.26.2 (or any later release) as documented in advisory GHSA-v733-mwr6-fgcm at https://github.com/n8n-io/n8n/security/advisories/GHSA-v733-mwr6-fgcm. If immediate upgrade is not possible, restrict workflow creation and edit permissions to fully trusted operators only, which removes the precondition for crafting a malicious Respond to Webhook node but reduces collaborative use of the platform. Alternatively, disable the affected node by adding n8n-nodes-base.respondToWebhook to the NODES_EXCLUDE environment variable, accepting that any existing workflows relying on synchronous webhook responses will break. The vendor explicitly notes these workarounds are partial mitigations only.

Affected VersionsENISA

n8n 2.26.0, < 2.26.2
n8n 2.0.0-rc.0, < 2.25.7
n8n < 1.123.55

Affected Packages

npm n8n fix: 1.123.55, 2.25.7, 2.26.2
euvd n8n_2_0_0_rc_0 fix: 2.25.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

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

Technical ContextAI · show details

n8n is a Node.js-based workflow automation platform (npm package n8n) where the Respond to Webhook node returns HTTP responses for public webhook endpoints. The platform applies a central Content-Security-Policy sandbox header to constrain webhook responses, but the binary response code path failed to enforce that header and honored an attacker-controlled Content-Type. This is a CWE-79 (Improper Neutralization of Input During Web Page Generation) issue manifesting as same-origin XSS because the response is served from the n8n application origin, giving injected JavaScript access to the victim's authenticated session cookies and UI state.

Know when the next one hits your stack

  • 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 (https://github.com/n8n-io/n8n) PRIMARY 7.0 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.6 HIGH

Network-reachable webhook (AV:N), attacker needs workflow-edit auth (PR:L), victim must click link (UI:R), same-origin XSS crosses authentication boundary into victim session (S:C, C:H).

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:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/n8n-io/n8n).

CVSS VectorVendor: https://github.com/n8n-io/n8n

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

Lifecycle Timeline

5
Analysis Updated
Jun 23, 2026 - 18:44 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:43 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:42 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:42 vuln.today
v2 - CVSS changed
CVSS changed
Jun 23, 2026 - 18:22 NVD
7.6 (HIGH) 7.0 (HIGH)

DescriptionCVE.org

Impact

An authenticated user with workflow edit access could configure a Respond to Webhook node to serve binary content with an attacker-controlled Content-Type. The binary response path bypassed the central Content-Security-Policy sandbox header, allowing a public webhook to execute JavaScript in the n8n origin when visited by an authenticated user, with access to that user's session.

Patches

The issue has been fixed in n8n versions 1.123.55, 2.25.7, and 2.26.2. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Disable the Respond to Webhook node by adding n8n-nodes-base.respondToWebhook to the NODES_EXCLUDE environment variable.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Executive ViewAI

Why It Matters

A cross-site scripting vulnerability in n8n workflow automation platform allows authenticated users with workflow editing privileges to execute JavaScript in other authorized users' sessions. No public exploit identified at time of analysis. Organizations operating n8n with multiple workflow developers face risk of unauthorized session hijacking and unauthorized modifications to critical automated processes.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
popular open-source workflow automation tool, common in dev/automation stacks
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.4%
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

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
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.

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