CVE-2026-25056

n8n Arbitrary File Write leading to RCE in n8n Merge Node

Published Feb 4, 2026 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
Description
n8n is an open source workflow automation platform. Prior to versions 1.118.0 and 2.4.0, a vulnerability in the Merge node's SQL Query mode allowed authenticated users with permission to create or modify workflows to write arbitrary files to the n8n server's filesystem potentially leading to remote code execution. This issue has been patched in versions 1.118.0 and 2.4.0.

Analysis

AI-generated

Technical impact

The flaw exists in the Merge node’s SQL query mode, letting authenticated users who can create or edit workflows write arbitrary files to the server’s file system. If those files contain executable code, the attacker can run code with the privileges of the n8n process, achieving remote code execution. This is an instance of uncontrolled file creation combined with improper permission checks.

Affected Systems

n8n‑io’s n8n workflow automation platform. All releases before 1.118.0 or 2.4.0 are vulnerable; upgrading to these or later versions removes the issue.

Risk and Exploitability

The CVSS score is 9.4, indicating a highly severe vulnerability. The EPSS score is under 1 %, suggesting the current exploitation probability is low but not zero. The vulnerability is not listed in the KEV catalog, so no active exploits are publicly known. Exploitation requires authenticated access to the workflow editor and permission to create or modify workflows; once a malicious file is written, arbitrary code can run on the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade n8n to version 1.118.0 or later, or 2.4.0 or later, to apply the vendor fix.
  • Restrict workflow editor permissions so that only trusted users can create or modify workflows, limiting the potential attack surface.
  • Implement file‑system monitoring (e.g., using auditd) to detect unexpected writes to critical directories and trigger alerts.

Generated by OpenCVE AI on April 18, 2026 at 13:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hv53-3329-vmrm n8n Merge Node has Arbitrary File Write leading to RCE
History
Type Values Removed Values Added
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared N8n
N8n n8n
Vendors & Products N8n
N8n n8n
Type Values Removed Values Added
Description n8n is an open source workflow automation platform. Prior to versions 1.118.0 and 2.4.0, a vulnerability in the Merge node's SQL Query mode allowed authenticated users with permission to create or modify workflows to write arbitrary files to the n8n server's filesystem potentially leading to remote code execution. This issue has been patched in versions 1.118.0 and 2.4.0.
Title n8n Arbitrary File Write leading to RCE in n8n Merge Node
Weaknesses CWE-434
CWE-693
References
Metrics cvssV4_0

{'score': 9.4, 'vector': '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'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

  • CWE-693

    Protection Mechanism Failure

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 5, 2026, 2:33 PM
Reserved
Jan 28, 2026, 2:50 PM
Status
Analyzed
Published
Feb 4, 2026, 5:16 PM
Modified
Jun 17, 2026, 10:24 AM