Skip to main content

n8n Workflow Automation EUVDEUVD-2026-27113

| CVE-2026-42237 MEDIUM
SQL Injection (CWE-89)
2026-04-29 https://github.com/n8n-io/n8n GHSA-hp3c-vfpm-q4f7
5.3
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
  2. Delivery
    Create or modify workflow with Snowflake/MySQL v1 node
  3. Exploit
    Pass user-controlled input via expression to identifier field
  4. Execution
    Trigger workflow execution with malicious payload
  5. Persist
    SQL injection executed in database
  6. Impact
    Exfiltrate, modify, or delete data

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 all of the following conditions to be present: (1) the Snowflake node or legacy MySQL v1 node must be actively used in the workflow; (2) the workflow must accept user-controlled input via expressions (from form submissions, webhook payloads, workflow variables, or external API responses); (3) that user-controlled input must be passed into an identifier field of the affected node, specifically table name, column name, or update key fields; (4) the attacker must have permission to create or modify workflows in n8n (authenticated access); (5) the n8n instance must have database credentials configured with access to the target Snowflake or MySQL database; (6) the target database must be accessible from the n8n runtime environment (network connectivity). Exploitation is NOT possible if: (1) the workflow uses only hardcoded, static table and column names without expression-based input; (2) table and column names are restricted to a predefined enumeration (dropdown selections) rather than free-form text input; (3) the Snowflake and MySQL v1 nodes are disabled via NODES_EXCLUDE; (4) the instance is running a patched version (1.123.32, 2.17.4, 2.18.1 or later); (5) workflow creation/editing permissions are restricted to administrators only and trusted admins do not create workflows with expression-based identifier inputs.

Impact

This vulnerability presents a moderate-to-high real-world risk despite the CVSS 8.2 score being tempered by prerequisite conditions. The CVSS vector (AV:N/AC:H/PR:L/UI:N/S:C) indicates network accessibility but requires authenticated access (PR:L), elevated attack complexity (AC:H), and cross-scope impact (S:C), which collectively reduce the attack surface compared to an unauthenticated network-exploitable flaw. However, multiple factors elevate practical risk: (1) the vulnerability is a bypass of a previous patch (GHSA-f3f2-mcxc-pwjx), indicating a pattern of incomplete fixes that may erode user trust in remediation; (2) exploitation requires only workflow creation permissions, not database admin credentials, making the attacker profile broader than just DBAs - any workflow designer can be the attack vector; (3) the impact scope crosses system boundaries (S:C in CVSS), meaning a compromised workflow can harm downstream database systems and potentially adjacent systems that consume that data; (4) expression-based input is a core n8n feature, so this is not a misconfigurations scenario but inherent to normal product usage; (5) no EPSS score, POC status, or KEV listing was provided, limiting exploitation probability assessment - however, the presence of a public advisory with detailed technical explanation lowers barriers to weaponization. The AC:H complexity factor is critical to validate: it suggests special conditions are required (described below). If those conditions are commonly met in deployed workflows, real-world risk escalates significantly. Organizations running n8n with external webhook-driven workflows feeding table names into Snowflake or MySQL v1 nodes face immediate risk; those with tightly controlled workflow design face lower risk.

Exploit ScenarioDerived

An attacker with workflow creation permissions (e.g., a low-privileged user or external contractor with n8n access) designs a workflow that accepts a table name from an external webhook input and uses the Snowflake node to query that table. The attacker crafts a malicious payload such as table_name'; DROP TABLE sensitive_data; -- and submits it via the webhook. When the workflow executes, the Snowflake node interpolates this payload directly into the SQL query, resulting in execution of SELECT * FROM table_name'; DROP TABLE sensitive_data; --, which drops the target table. Alternatively, the attacker could inject a UNION-based query to exfiltrate data from unintended tables, or use stacked queries to insert, update, or delete data across the database.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 29, 2026

SQL injection in n8n Snowflake and legacy MySQL v1 nodes allows authenticated users with workflow creation permissions to execute arbitrary SQL against connected databases by injecting malicious table names, column names, or update keys via expression inputs. This vulnerability affects n8n versions before 1.123.32, 2.17.4, and 2.18.1; successful exploitation enables data exfiltration, modification, or deletion. The flaw represents an incomplete fix to a prior SQL injection vulnerability (GHSA-f3f2-mcxc-pwjx) that already patched MySQL, PostgreSQL, and SQL Server nodes but overlooked the Snowflake node and legacy MySQL v1 implementation.

RemediationAI

Vendor-released patches: upgrade to n8n version 1.123.32, 2.17.4, or 2.18.1 or later depending on your current branch. The patch implements identifier escaping in the Snowflake and legacy MySQL v1 nodes to prevent SQL injection. For immediate mitigation prior to patching, administrators should implement the following controls, noting their trade-offs: (1) Restrict workflow creation and editing permissions to fully trusted users only - this limits the attacker profile but reduces workflow development agility and may not be feasible in large organizations with many designers; (2) Migrate existing workflows from the legacy MySQL v1 node to the MySQL v2 node, which already includes identifier escaping - this requires workflow reconfiguration and testing but eliminates vulnerability in that specific node; (3) Disable the Snowflake node entirely by adding n8n-nodes-base.snowflake to the NODES_EXCLUDE environment variable - this eliminates the Snowflake attack surface but prevents all Snowflake integrations until upgrade is completed; (4) Implement strict input validation in workflows by avoiding expression-based inputs to identifier fields (table names, column names, update keys) and instead hardcoding these values or using dropdown/selection controls that do not permit user input - this is the most operationally complex mitigation but provides defense-in-depth if combined with other controls. The n8n advisory is available at https://github.com/n8n-io/n8n/security/advisories/GHSA-hp3c-vfpm-q4f7.

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

n8n is a workflow automation platform that constructs and executes database queries through visual node configurations. The Snowflake and legacy MySQL v1 nodes interpolate user-controlled identifiers (table names, column names, update keys) directly into SQL query strings without escaping, violating SQL identifier quoting standards. Unlike parameterized prepared statements which separate SQL logic from data, direct string interpolation treats user input as executable SQL syntax. When expressions (dynamic inputs from forms, webhooks, or workflow variables) flow into identifier fields, an attacker can break out of the intended identifier context and inject arbitrary SQL clauses. This occurs because identifiers in SQL (table and column names) cannot be safely parameterized like data values; they require proper quoting (backticks, double quotes, or brackets depending on database dialect) or validation. The prior vulnerability (GHSA-f3f2-mcxc-pwjx, fixed in n8n 2.4.0 for MySQL, PostgreSQL, and SQL Server) demonstrates that this class of flaw had been partially addressed but incompletely - the fix did not extend to all affected database connectors.

Know when the next one hits your stack

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

Primary rating from Vendor (https://github.com/n8n-io/n8n) · only source for this CVE.

CVSS VectorVendor: https://github.com/n8n-io/n8n

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

3
Patch available
May 04, 2026 - 20:01 EUVD
CVSS changed
May 04, 2026 - 19:22 NVD
8.2 (MEDIUM) 5.3 (MEDIUM)
CVE Published
Apr 29, 2026 - 21:03 nvd
MEDIUM 8.2

DescriptionCVE.org

Impact

The fix for GHSA-f3f2-mcxc-pwjx did not cover the Snowflake node or the legacy MySQL v1 node. Both nodes construct SQL queries by directly interpolating user-controlled table names, column names, and update keys into query strings without identifier escaping, enabling SQL injection against the connected database.

Exploitation requires a specific workflow configuration:

  • The Snowflake or MySQL v1 node must be used with user-controlled input passed via expressions (e.g., from a form or webhook) into identifier fields such as table name, column name, or update key.

Successful exploitation could allow data exfiltration, modification, or deletion on the downstream database.

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.
  • Migrate workflows from the legacy MySQL v1 node to the MySQL v2 node, which already implements identifier escaping.
  • Disable the Snowflake node by adding n8n-nodes-base.snowflake to the NODES_EXCLUDE environment variable.
  • Avoid passing unvalidated external user input into table name, column name, or update key fields via expressions in the affected nodes.

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

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
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
Partial

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.

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