Skip to main content

N8n CVE-2026-33660

| EUVDEUVD-2026-15942 CRITICAL
Code Injection (CWE-94)
2026-03-25 GitHub_M GHSA-58qr-rcgv-642v
9.4
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as n8n user
  2. Delivery
    Create workflow with Merge node
  3. Exploit
    Configure Combine by SQL mode
  4. Execution
    Inject malicious SQL statement
  5. Persist
    Bypass AlaSQL sandbox restrictions
  6. Impact
    Read local files or execute code

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
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

Authenticated user with permission to create or modify workflows in n8n versions prior to 2.14.1, 2.13.3, or 1.123.26. Attacker must access the Merge node's 'Combine by SQL' mode to exploit insufficient AlaSQL sandbox restrictions for file read and RCE.

Impact

This vulnerability presents high real-world risk despite requiring authentication (CVSS PR:L). The CVSS 4.0 score of 9.4 reflects network accessibility (AV:N), low attack complexity (AC:L), no attack requirements (AT:N), and complete compromise of confidentiality, integrity, and availability across both vulnerable and subsequent systems (VC:H/VI:H/VA:H/SC:H/SI:H/SA:H). The attack is straightforward for any authenticated user with workflow permissions, making it highly automatable. The technical impact is maximum as it allows both data exfiltration and remote code execution on the host system. While no EPSS score or KEV listing is provided, the combination of low complexity, network attack vector, and RCE capability makes this a genuine priority for organizations running n8n. The severity is somewhat mitigated by the authentication requirement, but in typical n8n deployments where multiple users have workflow creation rights, the attack surface can be substantial. The availability of patches and the public security advisory (GHSA-58qr-rcgv-642v) increases the likelihood of exploitation attempts.

Exploit ScenarioDerived

An authenticated attacker with workflow creation privileges logs into an n8n instance and creates a new workflow containing a Merge node configured in 'Combine by SQL' mode. The attacker crafts a malicious SQL query that exploits the insufficient AlaSQL sandbox restrictions to read sensitive files such as /etc/passwd, environment variables containing secrets, or application configuration files. Escalating the attack, the attacker injects SQL statements that execute arbitrary Node.js code, establishing a reverse shell to the attacker's server and gaining full control over the n8n host system, potentially pivoting to other internal systems accessible from the compromised server.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
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 – Mar 25, 2026

An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit the Merge node's 'Combine by SQL' mode to read arbitrary local files on the n8n host and achieve remote code execution. n8n versions prior to 2.14.1, 2.13.3, and 1.123.26 are affected. The vulnerability carries a CVSS 4.0 score of 9.4 (Critical) due to insufficient sandbox restrictions in the AlaSQL component, allowing SQL injection-style attacks against the host system. No public proof-of-concept or active exploitation (KEV) status has been reported at this time.

RemediationAI

Immediately upgrade n8n to version 2.14.1, 2.13.3, or 1.123.26 depending on your current version branch, as detailed in the GitHub security advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-58qr-rcgv-642v. If immediate patching is not feasible, implement temporary mitigations by restricting workflow creation and editing permissions to only fully trusted administrators, and/or disable the Merge node entirely by adding 'n8n-nodes-base.merge' to the NODES_EXCLUDE environment variable. Note that these workarounds provide only partial risk reduction and should be considered temporary measures until the patch can be applied. Review audit logs for any suspicious workflow creations or modifications involving the Merge node's SQL functionality prior to patching.

Affected VersionsENISA

n8n < 1.123.27
n8n = 2.14.0
n8n 2.0.0-rc.0, < 2.13.3

Affected Packages

npm n8n fix: 1.123.27, 2.13.3, 2.14.1
euvd n8n_2_0_0_rc_0 fix: 2.13.3

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

The vulnerability affects n8n (cpe:2.3:a:n8n-io:n8n), an open-source workflow automation platform built on Node.js. The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection). The issue stems from inadequate sandboxing in the AlaSQL library used by n8n's Merge node when operating in 'Combine by SQL' mode. AlaSQL is a JavaScript SQL database that allows SQL queries to be executed in-memory within the browser or Node.js environment. The insufficient restrictions on SQL statements permitted attackers to break out of the intended sandbox environment, enabling them to execute arbitrary SQL commands that could read the filesystem or execute system-level code. This represents a classic sandbox escape vulnerability where security boundaries intended to isolate user-controlled SQL from the underlying system were not properly enforced.

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

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:H

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
High

Lifecycle Timeline

3
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
PoC Detected
Mar 30, 2026 - 14:54 vuln.today
Public exploit code
CVE Published
Mar 25, 2026 - 17:09 nvd
CRITICAL 9.4

DescriptionGitHub Advisory

n8n is an open source workflow automation platform. Prior to versions 2.14.1, 2.13.3, and 1.123.26, an authenticated user with permission to create or modify workflows could use the Merge node's "Combine by SQL" mode to read local files on the n8n host and achieve remote code execution. The AlaSQL sandbox did not sufficiently restrict certain SQL statements, allowing an attacker to access sensitive files on the server or even compromise the instance. The issue has been fixed in n8n versions 2.14.1, 2.13.3, and 1.123.26. Users should upgrade to one of these versions or later to remediate the vulnerability. If upgrading is not immediately possible, administrators should consider the following temporary mitigations: Limit workflow creation and editing permissions to fully trusted users only, and/or disable the Merge node by adding n8n-nodes-base.merge 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

A critical vulnerability in n8n workflow automation platform allows authenticated users with workflow privileges to read sensitive files and execute arbitrary code on affected servers. This poses a severe risk to organizations using n8n, particularly those processing sensitive data or relying on workflow automation for business-critical operations.

Business Impact: Severe
Compensating Controls

Implement Web Application Firewall (WAF) rules to monitor and block SQL injection patterns in workflow parameters; restrict network access to n8n instances through firewall rules and IP whitelisting; disable or remove the Merge node's 'Combine by SQL' functionality until patched; enforce multi-factor authentication for all accounts with workflow creation privileges; isolate n8n servers from production networks and sensitive data sources through network segmentation; implement runtime application self-protection (RASP) if available; increase logging and monitoring for suspicious SQL queries and file access attempts within n8n processes.

Threat Intelligence Overview

EPSS Score
0.1%
Top 71% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 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 Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Related Vulnerabilities in n8n Workflow Automation Security Flaws

View all 3

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-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-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

CVE-2026-33713 HIGH POC
8.7 Mar 25

SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute

CVE-2026-0863 HIGH POC
8.5 Jan 18

Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox

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