Skip to main content

n8n CVE-2026-54302

| EUVDEUVD-2026-38477 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-06-16 https://github.com/n8n-io/n8n GHSA-42h7-m79w-wvg5
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. Access
    Obtain n8n account with workflow edit rights
  2. Delivery
    Create workflow with Chat Trigger node
  3. Exploit
    Inject JavaScript via malicious webhookId
  4. Execution
    Lure authenticated victim to chat URL
  5. Persist
    Payload executes in n8n origin
  6. Impact
    Hijack session and call internal APIs

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

Requires an authenticated n8n account with workflow edit permission (PR:L), the Chat Trigger node (@n8n/n8n-nodes-langchain.chatTrigger) enabled in the instance, and victim interaction (UI:P) - a logged-in user must visit the attacker-crafted chat URL for the payload to execute. Exploitation is limited by the need for pre-existing edit access (so anonymous internet attackers cannot exploit directly) and by deployments where the Chat Trigger node has been excluded via NODES_EXCLUDE.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N) yields 7.0 (High) and is consistent with the description: exploitation requires an authenticated low-privileged user (PR:L) with workflow edit rights and a victim interaction (UI:P) to visit the chat URL. Real-world risk is moderated by the privileged precondition - an attacker must already have workflow edit access - but elevated where n8n is multi-tenant or used by teams with mixed trust levels, because successful exploitation hijacks an authenticated session and grants access to whatever the victim can do (often admin in single-tenant deployments). No KEV listing, no EPSS data, and no public exploit identified at time of analysis, so this is not currently a mass-exploitation priority, but stored XSS against an admin in an automation platform that holds many credentials is a high-impact internal threat.

Exploit ScenarioDerived

An attacker with a low-privileged n8n account that has workflow edit rights creates or modifies a workflow containing a Chat Trigger node and sets a malicious webhookId payload containing JavaScript. The attacker then shares the resulting chat URL with a higher-privileged target (e.g., an admin) or leaves it discoverable; when the victim opens the link while authenticated, the script executes in the n8n origin and can exfiltrate the session, call internal APIs, or pivot to credential stores held by other workflows.

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

AnalysisAIv3 – Jun 23, 2026

Stored cross-site scripting in n8n workflow automation platform allows authenticated users with workflow edit permissions to inject arbitrary JavaScript via the Chat Trigger node's webhookId parameter. When a logged-in user visits the chat URL, the injected code executes in the n8n origin with the victim's session privileges, enabling account takeover. No public exploit identified at time of analysis, but a vendor-released patch is available.

Earlier versions of this analysis (2)
v2 Jun 23, 2026 - 18:40 cvss changed CVSS 7.0

Stored cross-site scripting in n8n's Chat Trigger node lets an authenticated workflow editor inject arbitrary JavaScript via a malicious webhookId, which executes in the n8n origin when any logged-in user visits the generated chat URL. The flaw affects n8n versions prior to 1.123.55, 2.25.7, and 2.26.2, and no public exploit identified at time of analysis, but the GitHub Security Advisory GHSA-42h7-m79w-wvg5 documents the issue and a vendor-released patch is available. Exploitation can hijack victim sessions in the n8n origin and pivot to further actions allowed by the victim's privileges.

v1 Jun 17, 2026 - 00:09 CVSS 7.6

Stored cross-site scripting in n8n workflow automation platform allows an authenticated user with workflow edit privileges to inject arbitrary JavaScript via a malicious webhookId in the Chat Trigger node. When another authenticated user visits the chat URL, the payload executes in the n8n origin under their session, enabling account takeover within the platform. No public exploit identified at time of analysis, but the GitHub Security Advisory (GHSA-42h7-m79w-wvg5) confirms the issue and provides fixed versions.

RemediationAI

Vendor-released patch: upgrade n8n to 1.123.55, 2.25.7, or 2.26.2 (or later), as appropriate for your release track, per the GitHub Security Advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-42h7-m79w-wvg5. If immediate upgrade is not possible, restrict workflow creation and editing permissions to fully trusted users only to reduce the pool of potential injectors, and disable the Chat Trigger node by adding @n8n/n8n-nodes-langchain.chatTrigger to the NODES_EXCLUDE environment variable - the trade-off is that any existing chat-based workflows will stop functioning. These workarounds are partial and should be treated as bridging measures, not a substitute for patching.

Affected VersionsENISA

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

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 popular open-source workflow automation platform distributed via npm (pkg:npm/n8n). The vulnerability is a CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e., Cross-Site Scripting) flaw in the Chat Trigger node provided by the @n8n/n8n-nodes-langchain package. The webhookId field, which forms part of the chat URL and is rendered into the generated chat page, is insufficiently sanitized, allowing an attacker to break out of the intended HTML/JS context and inject script that runs same-origin in the n8n web UI.

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 web UI, authenticated workflow editor required (PR:L), victim must visit chat URL (UI:R), and XSS in n8n origin crosses to the victim's session context (S:C).

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

3
Analysis Updated
Jun 23, 2026 - 18:41 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:40 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 inject arbitrary JavaScript into the Chat Trigger's generated page by setting a malicious webhookId. When a logged-in user visited the chat URL, the injected code executed in the n8n origin with that user's session privileges.

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 Chat Trigger node by adding @n8n/n8n-nodes-langchain.chatTrigger 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

N8n workflow automation users with editing permissions can inject malicious code via the Chat Trigger node that compromises colleague accounts and enables account takeover when those colleagues access affected URLs. This threat directly impacts the integrity of automated business operations and sensitive data managed through n8n workflows. A vendor-released patch is available.

Business Impact: High
Compensating Controls

Apply vendor patch. If patching is delayed: restrict workflow editor role to trusted administrators only; disable or closely monitor Chat Trigger node usage; audit all existing Chat Trigger configurations for unauthorized modifications.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
Popular open-source workflow automation tool, common but not ubiquitous.
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