Skip to main content

n8n CVE-2026-44791

| EUVDEUVD-2026-38485 CRITICAL
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-05-14 https://github.com/n8n-io/n8n GHSA-wrwr-h859-xh2r
9.4
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
    Authenticate to n8n as editor user
  2. Delivery
    Create workflow containing XML node
  3. Exploit
    Submit crafted XML payload polluting Object.prototype
  4. Execution
    Chain downstream node consuming polluted property
  5. Persist
    Trigger workflow execution
  6. Impact
    Execute arbitrary code on n8n host

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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 user account on the target n8n instance that holds the permission to create or modify workflows - the n8n RBAC role granting workflow editor rights is the minimum prerequisite (CVSS PR:L). The XML node (n8n-nodes-base.xml) must be enabled (it is enabled by default unless explicitly listed in NODES_EXCLUDE), and the attacker must be able to add at least one additional node downstream of the XML node in the same workflow so that the polluted prototype is consumed during workflow execution. No user interaction by another party is required (UI:N) and the attack is over the network via the standard n8n web UI/API (AV:N); exploitation is limited in practice to environments that grant workflow-edit rights beyond a single trusted admin.

Impact

Signals are mixed: the vendor's CVSS 4.0 score of 9.4 and CVSS 3.1 of 9.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) indicate network-reachable RCE with scope change and high impact across confidentiality, integrity, and availability, but PR:L confirms a low-privileged authenticated user - specifically one already trusted to create or modify workflows - is required, which materially narrows the attacker population. EPSS is very low at 0.05% (15th percentile) and the CVE is not on CISA KEV, and no public exploit identified at time of analysis, so this is currently a high-severity but low-observed-exploitation issue. The realistic threat profile is hosted/multi-tenant n8n deployments and any environment where workflow-editor permissions are granted broadly (e.g., to semi-trusted business users), where a malicious or compromised editor account can pivot to host RCE; single-operator self-hosted instances with no untrusted editors are at substantially lower real-world risk despite the headline 9.4.

Exploit ScenarioDerived

An attacker with a low-privileged editor account on a shared or hosted n8n instance creates a workflow that uses the XML node to parse a crafted XML payload, which poisons Object.prototype properties in the running Node.js process. The attacker then chains a subsequent node (for example one performing a templated operation or command construction) whose behavior is now altered by the polluted prototype, achieving arbitrary code execution as the n8n host process. No public exploit identified at time of analysis, but the bypass-of-prior-patch nature means the original GHSA-hqr4-h3xv-9m3r analysis is a useful starting point for a researcher to reproduce.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jun 23, 2026

Remote code execution in n8n workflow automation platform is possible via a prototype pollution patch bypass in the XML node, affecting versions prior to 1.123.43, 2.20.7, and 2.22.1. Authenticated users with workflow creation or modification permissions can bypass the prior fix for GHSA-hqr4-h3xv-9m3r and, by chaining the XML node with other nodes, achieve code execution on the n8n host. No public exploit identified at time of analysis, though EPSS is low (0.05%) suggesting limited near-term mass exploitation despite the high CVSS 4.0 score of 9.4.

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

Remote code execution in n8n workflow automation platform is achievable by authenticated users with workflow creation/modification privileges, who can bypass the earlier patch for GHSA-hqr4-h3xv-9m3r in the XML node and chain it with other nodes to execute arbitrary code on the host. The flaw is rooted in prototype pollution (CWE-1321) within XML processing, affecting n8n versions prior to 1.123.43, 2.20.7, and 2.22.1. No public exploit identified at time of analysis, and EPSS sits at 0.05% (15th percentile), but the CVSS 4.0 base score of 9.4 reflects the severe RCE outcome once authenticated workflow access is obtained.

v1 May 14, 2026 - 17:02

Remote code execution in n8n workflow automation platform allows authenticated users with workflow editing permissions to exploit a prototype pollution patch bypass in the XML node component. The vulnerability (CVE-2026-44791) affects n8n versions prior to 1.123.43, 2.20.7, and 2.22.1, building on a previous incomplete fix (GHSA-hqr4-h3xv-9m3r). Vendor-released patches are available across all affected version branches. CVSS 3.1 score of 9.9 (Critical) reflects network-accessible attack requiring low-privilege authentication with changed scope enabling full system compromise. No public exploit identified at time of analysis, though the existence of a prior related vulnerability (GHSA-hqr4-h3xv-9m3r) suggests attackers familiar with the original issue could adapt techniques.

RemediationAI

Vendor-released patch: upgrade to n8n 1.123.43, 2.20.7, or 2.22.1 (or any later release on those lines) as documented in advisory https://github.com/n8n-io/n8n/security/advisories/GHSA-wrwr-h859-xh2r. If immediate upgrade is not possible, restrict workflow create/edit permissions to a small set of fully trusted operators via n8n's RBAC, which removes the low-privilege attacker pool but breaks delegated workflow authoring and self-service automation use cases. As a second compensating control, disable the XML node entirely by adding n8n-nodes-base.xml to the NODES_EXCLUDE environment variable and restarting the instance; the trade-off is that any existing workflows depending on XML parsing will fail until refactored to use an alternative parser node. The vendor explicitly states these workarounds do not fully remediate the risk and should be treated as short-term mitigations only.

Affected VersionsENISA

n8n < 1.123.43
n8n 2.21.0, < 2.21.1
n8n 2.0.0-rc.0, < 2.20.7

Affected Packages

npm n8n fix: 1.123.43, 2.20.7, 2.21.1, 2.22.1
euvd n8n_2_0_0_rc_0 fix: 2.20.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 as the npm package n8n. The flaw is classified as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes, i.e. Prototype Pollution), a JavaScript-specific class of bug where attacker-controlled keys reach Object.prototype and pollute properties inherited by every object in the runtime. The vulnerability lives in n8n's built-in XML node (n8n-nodes-base.xml), which parses untrusted XML into JavaScript objects; an earlier patch for GHSA-hqr4-h3xv-9m3r blocked one pollution path, and this CVE represents an incomplete-fix bypass of that mitigation. Because n8n executes workflow logic in Node.js, polluted prototype properties can influence the behavior of subsequent nodes in the same workflow, which is how the bypass is escalated to remote code execution on the host process.

Know when Prototype Pollution 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 (https://github.com/n8n-io/n8n) PRIMARY 9.4 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
vuln.today AI 9.9 CRITICAL

Network-reachable web UI/API (AV:N), reliable prototype pollution chain (AC:L), requires workflow-editor account (PR:L), no second-user interaction (UI:N), RCE on host changes scope (S:C) with full CIA impact.

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

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
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Analysis Updated
Jun 23, 2026 - 18:30 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 23, 2026 - 18:29 vuln.today
v2 - CVSS changed
CVSS changed
Jun 23, 2026 - 18:22 NVD
9.4 (CRITICAL)
CVE Published
May 14, 2026 - 16:17 nvd
CRITICAL

DescriptionCVE.org

Impact

An authenticated user with permission to create or modify workflows could bypass the patch for GHSA-hqr4-h3xv-9m3r in the XML node. When combined with other nodes, this could lead to RCE on the n8n host.

Patches

The issue has been fixed in n8n versions 1.123.43, 2.20.7, and 2.22.1. 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 XML node by adding n8n-nodes-base.xml to the NODES_EXCLUDE environment variable.

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

--- n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Executive ViewAI

Why It Matters

n8n workflow automation platform contains a critical remote code execution vulnerability that allows authenticated users with workflow modification permissions to bypass prior security controls and execute arbitrary code on the host system. This directly threatens organizations using n8n for business-critical automation and creates insider threat exposure-compromised user accounts or malicious insiders could compromise the entire automation infrastructure and connected downstream systems. Immediate patching is required to restore security posture.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade to patched versions 1.123.43 (v1 branch), 2.20.7 (v2.20 branch), or 2.22.1 (v2.22+ branch). Interim: restrict workflow creation/modification permissions to highest-confidence users only and implement real-time audit logging of workflow changes.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Prevalence
Medium
popular self-hosted workflow automation platform, growing but not ubiquitous
Threat Intel
2
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS NEWS 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

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