Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify n8n instance with externally-facing webhook trigger
-
DeliverySubmit crafted payload with SQL injection metacharacters
-
ExploitWorkflow expression interpolates payload into raw Snowflake SQL string
-
ExecutionInjected SQL executes against Snowflake database
-
ImpactUnauthorized exfiltration or modification of Snowflake 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 two concurrent conditions to both be present. First, a workflow author must have already constructed a Snowflake executeQuery node that embeds an n8n expression resolving to externally-controlled data directly in the raw SQL query string - this is the design-time prerequisite and is not the default or recommended usage pattern. Second, an attacker must be able to supply input that reaches that expression, typically via a publicly accessible webhook, HTTP trigger, or other externally-facing n8n trigger node connected upstream in the workflow. The CVSS 4.0 AT:P (attack requirements: present) metric formally encodes this configuration dependency. PR:L indicates a low-privileged workflow author account is the enabler of the vulnerable pattern at design time. Exploitation is further limited by: the non-default nature of embedding external expression data in raw SQL rather than using parameterized inputs, the requirement that Snowflake integration is actively used in deployed workflows, and the need for those workflows to be connected to externally-reachable triggers. Workflows where all expression data originates from internal, trusted n8n variables rather than external inputs are not exploitable. |
| Impact | The CVSS 4.0 score of 5.3 reflects significant exploitation prerequisites captured in AT:P (specific attack conditions must exist), which meaningfully constrains real-world risk relative to the high subsequent-system impact metrics (SC:H/SI:H). The PR:L metric confirms that a low-privileged workflow author must have already constructed the vulnerable pattern - embedding externally-controlled expression data directly in a raw SQL string - before any runtime attacker can leverage it. The high subsequent-system impact reflects that successful injection reaches Snowflake, a data-warehouse environment likely containing sensitive business intelligence or regulated data, making the potential blast radius severe even if the likelihood is moderated. EPSS data was not provided in available intelligence sources, preventing quantitative exploitation probability assessment; KEV status is absent, and no public exploit code has been identified at time of analysis. The conjunction of conditions required - a vulnerable workflow pattern plus an externally reachable trigger feeding attacker-controlled data - means only organizations where workflow authoring permissions are loosely governed face meaningful exposure; even a mid-sized municipal IT team in tczew should treat this as urgent if n8n workflow editing is not restricted to fully trusted personnel. The absent EPSS and KEV signals suggest this is not yet a widely-exploited opportunistic issue, but the Snowflake data-tier impact and well-understood exploitation class (SQL injection) warrant prompt patching rather than deferred remediation. |
| Exploit ScenarioDerived | An attacker who can submit arbitrary data to an n8n HTTP webhook or other externally-facing trigger node crafts a payload containing SQL metacharacters - for example, injecting a UNION SELECT or stacked query - targeting a workflow where a Snowflake executeQuery node embeds the incoming expression value directly in a raw SQL string. Because the value is interpolated without parameterization, the injected SQL executes against the connected Snowflake database, potentially exfiltrating tables containing business intelligence data or modifying records. No public exploit code has been identified at time of analysis, but the CWE-89 class is thoroughly documented and exploitation requires only standard SQL injection techniques against a known string-interpolation pattern. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
SQL injection in n8n's Snowflake node Execute Query operation exposes downstream Snowflake databases to unauthorized data access and manipulation when workflow authors embed externally-controlled expression data directly into raw SQL strings without parameterization. Affected across three version lines - n8n below 1.123.67, 2.0.0-rc.0 through below 2.31.5, and 2.32.0 through below 2.32.1 - the flaw is rooted in direct string interpolation rather than prepared statements. No public exploit has been identified at time of analysis, but the CVSS 4.0 vector signals high subsequent-system confidentiality and integrity impact against connected Snowflake environments.
RemediationAI
Upgrade n8n to version 1.123.67 if on the 1.x line, 2.31.5 if on the 2.x line below 2.32.0, or 2.32.1 if on the 2.32.x line, per the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-652q-gvq3-74qv. Following upgrade, migrate existing Snowflake executeQuery nodes to use the newly introduced Query Parameters field with positional placeholders rather than expression interpolation in raw SQL strings, to eliminate the injection path in pre-existing workflows. If immediate upgrade is not feasible, the vendor recommends three temporary mitigations - each with acknowledged limitations: restrict workflow creation and editing permissions to fully trusted users only (this reduces the likelihood of the vulnerable pattern being introduced but does not remediate existing vulnerable workflows); audit all existing Snowflake executeQuery workflows and remove any expression that resolves to externally-controlled data embedded in raw SQL (effective but requires thorough workflow inventory); and restrict network access to webhook and trigger endpoints feeding data into Snowflake executeQuery nodes (reduces attack reach but may break legitimate integrations). The vendor explicitly notes that none of these workarounds fully remediates risk and they should be treated as short-term measures only.
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 an open-source, Node.js-based workflow automation platform distributed as the npm package n8n-io/n8n, enabling users to compose automated data pipelines by connecting nodes representing external services. Its Snowflake node integrates with Snowflake's cloud data warehouse via the Snowflake JavaScript SDK. The Execute Query operation in affected versions constructs SQL statements by directly interpolating n8n expression values - JavaScript-evaluated strings derived from workflow inputs - into the query string, violating the fundamental principle of separating code from data. CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) precisely describes this root cause: user-controlled data reaches an SQL interpreter without proper escaping or parameterization. The CPE cpe:2.3:a:n8n-io:n8n:*:*:*:*:*:*:*:* spans all affected version ranges. The fix introduces a Query Parameters field using positional placeholders, which binds values at the database driver layer rather than in the query string, eliminating the injection surface.
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
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N
AC:H reflects the prerequisite vulnerable workflow configuration; PR:L captures required workflow-author access; S:C and C:H/I:H reflect Snowflake database impact as a separate, high-value system.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
n8n before 1.123.67, 2.31.5, and 2.32.1 contains a SQL injection vulnerability in the Snowflake node's Execute Query operation, which interpolates expression values directly into the SQL string. When a workflow author embeds untrusted, externally-controlled expression data directly in a raw SQL query, that data is not parameterized, allowing SQL injection. The fix adds an optional 'Query Parameters' field to bind values via positional placeholders.
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.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
EUVD-2026-56140
GHSA-j3gw-mm62-q9gj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB