Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to n8n
-
DeliveryCreate or modify workflow with Snowflake/MySQL v1 node
-
ExploitPass user-controlled input via expression to identifier field
-
ExecutionTrigger workflow execution with malicious payload
-
PersistSQL injection executed in database
-
ImpactExfiltrate, 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
3DescriptionCVE.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.snowflaketo theNODES_EXCLUDEenvironment 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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-27113
GHSA-hp3c-vfpm-q4f7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB