Skip to main content

n8n EUVDEUVD-2026-38753

| CVE-2026-56351 MEDIUM
SQL Injection (CWE-89)
2026-06-24 VulnCheck
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to n8n with workflow creation permissions
  2. Delivery
    Open or create a MySQL, PostgreSQL, or MSSQL node in a workflow
  3. Exploit
    Supply crafted SQL identifier (table or column name) in node config
  4. Execution
    Execute the workflow to trigger query construction
  5. Persist
    Injected SQL runs against the downstream database
  6. Impact
    Exfiltrate or corrupt database contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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 account that holds explicit 'workflow creation or modification' permissions - this is not a default guest or viewer role and must be deliberately assigned. The attacker must also have access to at least one database credential configured within n8n that points to a live MySQL, PostgreSQL, or Microsoft SQL Server instance; without a usable database credential, the node cannot execute queries. The vulnerability is constrained to n8n versions before 2.4.0, and only the three named database nodes are affected. The affected nodes are enabled by default but can be excluded via NODES_EXCLUDE. Unauthenticated access cannot trigger this vulnerability. The CVSS 4.0 AT:P designation confirms the dual-prerequisite nature: workflow-level access and database credential access must coexist in the same user context, which is a meaningful constraint in deployments with role separation.

Impact

The official CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N) scores 5.3, which underrepresents the downstream database impact if exploitation succeeds - SC:H and SI:H indicate high confidentiality and integrity compromise of the subsequent database system. The AT:P designation (attack prerequisites present) reflects the dual requirement of workflow-creation permission AND access to a configured database credential, which appropriately narrows the exploitable population in governed deployments. No EPSS score was included in the provided data, so exploitation probability cannot be quantified numerically. No CISA KEV listing and no public exploit code have been identified, placing this in lower operational urgency. However, the attack pattern for identifier injection is well-understood and trivial to craft manually by any competent attacker once authenticated - the limiting factor is access, not technique. Organizations running n8n in multi-tenant or semi-trusted-user configurations (e.g., team-shared instances) should treat this as higher priority than the aggregate 5.3 score suggests, given the database-level blast radius.

Exploit ScenarioDerived

An authenticated n8n user who holds workflow creation permissions and has access to a configured database credential creates a new workflow database node, entering a crafted table name such as real_table; GRANT ALL PRIVILEGES ON *.* TO attacker@'%'; -- in the node configuration parameter. When the workflow executes, n8n builds the SQL query using the unsanitized identifier, causing the injected statement to execute against the connected MySQL, PostgreSQL, or MSSQL instance with the privileges of the configured database credential. No public exploit code has been identified, but the identifier injection technique is a well-documented variant of CWE-89 requiring no specialized tooling.

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 24, 2026

SQL injection in n8n's MySQL, PostgreSQL, and Microsoft SQL database integration nodes (all versions before 2.4.0) allows authenticated users with workflow creation permissions to execute arbitrary SQL commands against connected databases by supplying crafted identifier values - table or column names - in node configuration parameters. The nodes failed to escape SQL identifiers when constructing queries, bypassing the safety guarantees users expected from parameterized inputs and enabling injection that directly impacts downstream database confidentiality and integrity. Reported by the NATO Cyber Security Centre; vendor-released patch is confirmed in n8n 2.4.0, with no public exploit code or CISA KEV listing identified at time of analysis.

RemediationAI

The primary remediation is to upgrade n8n to version 2.4.0 or later, which resolves the identifier escaping flaw across all three affected database nodes (vendor advisory: https://github.com/n8n-io/n8n/security/advisories/GHSA-f3f2-mcxc-pwjx; patch commit: https://github.com/n8n-io/n8n/commit/f73fae6fe7fc34907bba102648a9997186aa4385). If immediate upgrade is not feasible, two interim workarounds are available per the vendor advisory: first, restrict workflow creation and editing permissions to fully trusted users only - this reduces the attack surface but does not fix the underlying code flaw and is ineffective if any trusted user is compromised; second, disable the three affected nodes by adding n8n-nodes-base.mySql, n8n-nodes-base.postgres, and n8n-nodes-base.microsoftSql to the NODES_EXCLUDE environment variable, which blocks exploitation entirely but also disables legitimate database integration functionality. Both workarounds are explicitly noted by the vendor as incomplete mitigations and should be treated as short-term measures only pending the upgrade to 2.4.0.

Affected VersionsENISA

n8n 0 <2.4.0

Affected Packages

npm n8n fix: 2.4.0

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

The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) arising from a distinction between parameterized query values and SQL identifiers. Parameterized queries protect data values (WHERE col = ?) but do not protect structural identifiers such as table names and column names, which must be separately escaped using dialect-specific quoting (backtick-quoting in MySQL, double-quote escaping in PostgreSQL/MSSQL). n8n's mySql, postgres, and microsoftSql nodes passed user-controlled identifier values from node configuration parameters directly into query construction without applying identifier escaping or allowlisting. The affected package is npm/n8n (CPE: cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*) across all releases prior to 2.4.0. The patch is tracked at commit f73fae6fe7fc34907bba102648a9997186aa4385.

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

Network-accessible with low complexity; PR:L for required authenticated workflow-creator role; scope changes to downstream database (S:C) with high confidentiality and integrity impact; no availability impact described in the advisory.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jun 24, 2026 - 13:01 EUVD
CVE Published
Jun 24, 2026 - 11:53 cve.org
MEDIUM 5.3

DescriptionCVE.org

n8n before version 2.4.0 contains a sql injection vulnerability in MySQL, PostgreSQL, and Microsoft SQL nodes that allows authenticated users to inject arbitrary SQL through unescaped identifier values in node configuration parameters. Attackers with workflow creation permissions can supply specially crafted table or column names to execute unauthorized database commands and compromise data integrity.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
popular open-source workflow automation tool with growing enterprise and developer adoption
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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 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
Total

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

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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