Skip to main content

n8n CVE-2026-42232

| EUVDEUVD-2026-27104 CRITICAL
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-04-29 https://github.com/n8n-io/n8n GHSA-hqr4-h3xv-9m3r
9.4
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Recon
    Obtain authenticated credentials
  2. Delivery
    Access workflow editor
  3. Exploit
    Create workflow with malicious XML node
  4. Install
    Inject prototype pollution payload
  5. C2
    Trigger workflow execution
  6. Execute
    Chain with vulnerable node
  7. Impact
    Execute arbitrary code
  8. Step 8
    Compromise n8n instance

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

Exploitation requires authenticated access to an n8n instance with workflow creation or modification permissions (CVSS PR:L confirms low-privilege authentication required). The attacker must specifically leverage the XML node component within a workflow, meaning the XML node must not be disabled via the NODES_EXCLUDE environment variable. The vulnerability exists in default configurations of affected n8n versions. Exploitation is limited to users who have been granted workflow editing capabilities through n8n's permission system-organizations that restrict workflow editing to a small number of administrators face significantly lower risk than those with broad workflow editing permissions. The scope change (S:C) in the CVSS vector indicates successful exploitation breaks out of workflow isolation to affect the entire n8n instance.

Impact

The CVSS vector AV:N/AC:L/PR:L/UI:N/S:C indicates network-accessible exploitation with low complexity requiring only low-privileged authentication, no user interaction, and critically includes scope change (S:C) meaning the vulnerability breaks out of its security boundary to impact other components. The 10.0 CVSS score is justified by the scope change combined with complete confidentiality, integrity, and availability impact. However, real-world risk is moderated by the PR:L requirement-attackers must first obtain authenticated access with workflow editing permissions, which in properly configured n8n instances should be restricted to trusted users. No CISA KEV listing exists, indicating no confirmed widespread or targeted exploitation. No public POC is referenced in available data. The authentication prerequisite significantly reduces attack surface compared to unauthenticated vulnerabilities, but the scope change and RCE capability make this critical for organizations where workflow editing permissions are broadly granted or where credential compromise is a concern. Organizations should prioritize patching based on their n8n permission model: critical priority if multiple users have workflow editing rights, high priority if tightly controlled.

Exploit ScenarioDerived

An attacker with stolen or insider credentials possessing workflow editing permissions logs into the n8n instance and creates a malicious workflow containing an XML node. The attacker crafts specially formatted XML input that exploits the parsing vulnerability to inject malicious properties into JavaScript's Object.prototype, such as polluting properties used by execution contexts or command execution nodes. The attacker then chains this with other n8n nodes that reference the polluted prototype properties during workflow execution, triggering arbitrary code execution within the n8n server's Node.js runtime with the privileges of the n8n process, potentially accessing sensitive workflow data, credentials stored in n8n, or pivoting to other systems accessible from the n8n server.

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

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

Alert me

AnalysisAIv1 – Apr 29, 2026

Prototype pollution in n8n's XML node allows authenticated workflow editors to achieve remote code execution through global prototype manipulation. The vulnerability affects n8n workflow automation platform versions prior to 1.123.32, 2.17.4, and 2.18.1, enabling attackers with workflow creation privileges to inject malicious properties into JavaScript object prototypes that can be exploited by other nodes to execute arbitrary code. Vendor-released patches are available for all affected version branches. No public exploit code or active exploitation (CISA KEV) has been identified at time of analysis, though the CVSS 10.0 score reflects the critical scope change and complete system compromise potential.

RemediationAI

Upgrade to patched versions: 1.123.32 for 1.x branch users, 2.17.4 for 2.17.x users, or 2.18.1 for 2.18.x users as specified in GitHub advisory GHSA-hqr4-h3xv-9m3r. If immediate patching is not feasible, implement temporary mitigations: restrict workflow creation and editing permissions to fully vetted trusted users only through n8n's access control settings, and disable the vulnerable XML node by setting the environment variable NODES_EXCLUDE=n8n-nodes-base.xml before starting n8n. Note that disabling the XML node will break existing workflows that depend on XML parsing functionality and may impact business processes. The vendor explicitly states workarounds do not fully remediate risk and should only serve as short-term measures until patching is completed. Verify successful mitigation by confirming the XML node is unavailable in the workflow editor and testing that existing XML-dependent workflows fail gracefully.

Affected VersionsENISA

n8n < 1.123.32
n8n 2.18.0, < 2.18.1
n8n 2.17.0, < 2.17.4

Affected Packages

npm n8n fix: 1.123.32, 2.17.4, 2.18.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

This vulnerability stems from CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes), commonly known as prototype pollution, in n8n's XML node component. N8n is a workflow automation platform built on Node.js that uses a visual programming interface with interconnected nodes. The XML node, used for parsing and manipulating XML data, fails to properly sanitize input, allowing injection of properties into JavaScript's Object.prototype. In JavaScript's prototype-based inheritance model, polluting the global prototype affects all object instances application-wide. When combined with other n8n nodes that access polluted properties without validation, this creates a gadget chain enabling remote code execution within the Node.js runtime environment. The npm package 'n8n' distributed via the Node Package Manager is the affected component.

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

GitHub Advisory 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:L

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

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
Low

Lifecycle Timeline

3
Patch available
May 04, 2026 - 20:01 EUVD
CVSS changed
May 04, 2026 - 19:22 NVD
10.0 (CRITICAL) 9.4 (CRITICAL)
CVE Published
Apr 29, 2026 - 21:25 nvd
CRITICAL 10.0

DescriptionGitHub Advisory

Impact

An authenticated user with permission to create or modify workflows could achieve global prototype pollution via the XML Node leading to RCE when combined with other nodes exploiting the prototype pollution.

Patches

The issue has been fixed in n8n versions 1.123.32, 2.17.4, and 2.18.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.

Executive ViewAI

Why It Matters

CVE-2026-42232 is a critical prototype pollution vulnerability in n8n's XML node that allows authenticated workflow editors to execute arbitrary code across the automation platform, potentially compromising all connected systems and data pipelines. Organizations using n8n for business process automation face complete system compromise if malicious actors gain workflow creation access, directly impacting operational continuity and data security.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Until patching is complete: (1) Immediately revoke workflow creation and editing permissions from all non-essential users, limiting to a minimal trusted administrative group; (2) implement network segmentation to limit lateral movement from compromised workflows to critical systems; (3) enable comprehensive audit logging of all workflow modifications and API activity; (4) disable the XML node functionality if not actively required for business operations.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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