Skip to main content

n8n CVE-2026-56356

| EUVDEUVD-2026-40444 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-30 VulnCheck GHSA-99wx-hwrx-8g4w
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with workflow editor credentials
  2. Delivery
    Inject JavaScript into Chat Trigger Custom CSS field
  3. Exploit
    Payload stored server-side, bypassing sanitize-html
  4. Execution
    Victim visits public chat page URL
  5. Persist
    Injected script executes in victim browser
  6. Impact
    Session cookie or credential theft

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 user account with permission to create or modify workflows - confirmed by the CVSS 4.0 PR:L metric. The attacker must specifically target the Custom CSS field within a Chat Trigger node. Victims must visit the public chat page associated with the compromised workflow; this is a passive victim requirement (UI:P in CVSS 4.0). No non-default configuration is required beyond the Chat Trigger node being deployed with a public URL, which is its standard, intended use case. Exploitation is limited by: (1) the attacker must hold valid n8n credentials with workflow editing rights, reducing opportunistic mass exploitation; (2) victims must actively visit the specific public chat page; and (3) impact is bounded to the browser context of the public chat page, not the n8n administrative interface.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) scores 5.1 (Medium). Key risk signals: attack complexity is low with no special attack requirements (AT:N), but exploitation requires an authenticated account with workflow editing rights (PR:L) and passive victim interaction - visiting the public chat page (UI:P). The scope change to subsequent systems (SC:L/SI:L) correctly captures that the injecting attacker harms third-party visitors, not just themselves. No EPSS data was provided in the input, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV and no public exploit code has been identified. Real-world risk is moderate rather than critical: the insider or compromised-account prerequisite narrows the opportunistic threat surface, but any n8n deployment offering public-facing Chat Trigger workflows is exposed to cross-user compromise once a privileged account is leveraged. Availability is not impacted (VA:N/SA:N), and confidentiality and integrity effects are assessed as low per the CVSS 4.0 vector.

Exploit ScenarioDerived

An attacker with a legitimate or compromised n8n account holding workflow editor permissions creates or edits a Chat Trigger workflow and places a malicious JavaScript payload in the Custom CSS field, bypassing the improperly configured sanitize-html filter. The payload is persisted server-side and rendered to every user who subsequently visits the public chat URL associated with that workflow. Upon page load, the injected script executes in victims' browsers, enabling session cookie theft, credential harvesting via fake login overlays, or silent redirection to attacker-controlled infrastructure.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 30, 2026

Stored XSS in n8n's Chat Trigger node allows authenticated workflow editors to inject JavaScript through a misconfigured sanitize-html filter in the Custom CSS field, which then executes in the browsers of every user visiting the public chat page. Affected are all 1.x releases before 1.123.27, the 2.0.0-2.13.2 range, and 2.14.0; fixed versions are 1.123.27, 2.13.3, and 2.14.1. No public exploit code or CISA KEV listing has been identified at time of analysis, and the CVSS 4.0 score of 5.1 reflects the authenticated prerequisite and bounded per-user impact.

RemediationAI

Upgrade n8n to version 1.123.27 (for the 1.x line), 2.13.3 (for the 2.13.x line), or 2.14.1 (for the 2.14.x line) as documented in the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-3c7f-5hgj-h279. If immediate patching is not feasible, restrict workflow creation and modification permissions to only fully trusted personnel, since the attack requires an authenticated account with those privileges - revoking or auditing who holds such rights limits the injection surface. Additionally, consider disabling or blocking public access to Chat Trigger node endpoints until the patch is applied; this eliminates victim exposure at the cost of interrupting any public-facing chat workflows. There are no other documented workarounds that address the sanitize-html misconfiguration directly without a code-level fix.

Affected VersionsENISA

n8n 2.0.0-rc.0 <2.13.3
n8n 0 <2.14.1
n8n 2.14.0 <2.14.1
n8n 0 <2.13.3
n8n 0 <1.123.27

Affected Packages

npm n8n fix: 1.123.27, 2.13.3, 2.14.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 an open-source workflow automation platform (CPE: cpe:2.3:a:n8n:n8n) whose Chat Trigger node exposes a publicly accessible chat interface, configurable with a Custom CSS field. n8n uses the sanitize-html JavaScript library to strip dangerous markup before rendering user-supplied content, but a misconfiguration in how the library is applied to this specific field allows crafted input to bypass filtering. CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting) is the root cause: the application stores unsanitized attacker-controlled data server-side and later renders it verbatim into the chat page DOM, making this a persistent (stored) variant. Because the public chat page is served to all visitors without authentication, a single injection poisons the page for every subsequent user, amplifying impact beyond the injecting account.

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 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

Stored XSS exploitable over network by authenticated workflow editor (PR:L), requires victim page visit (UI:R), scope change (S:C) reflects cross-user impact; no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/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
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 01, 2026 - 02:16 EUVD

DescriptionCVE.org

n8n contains a stored cross-site scripting vulnerability in the Chat Trigger node's Custom CSS field due to a misconfiguration of the sanitize-html library. Affected releases are those before 1.123.27, the 2.0.0 through 2.13.2 line, and 2.14.0 (fixed in 1.123.27, 2.13.3, and 2.14.1). An authenticated user with permission to create or modify workflows can inject JavaScript that bypasses sanitization, resulting in stored XSS against any user who visits the public chat page.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
popular self-hosted and cloud workflow automation tool, growing enterprise adoption
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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-27493 CRITICAL POC
9.0 Feb 25

Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger

CVE-2025-56265 HIGH POC
8.8 Sep 08

An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac

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

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