Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted webhook request
-
DeliveryInject SQL payload via bound Query field expression
-
ExploitBypass missing parameterisation in MSSQL node v1
-
ExecutionExecute arbitrary SQL with stored DB credentials
-
ImpactExfiltrate or modify database records
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 a victim-authored n8n workflow that uses version 1 of the Microsoft SQL node AND binds untrusted external input (explicitly called out: webhook fields) into the node's Query field via an expression, so that the value is concatenated into SQL text without parameterisation. This specific insecure-workflow configuration is the attack requirement (AT:P in the provided CVSS 4.0 vector) and is the key limiting factor: default installations, workflows that do not expose the MSSQL node to external input, or workflows using parameterised inputs are not exploitable. Affected only on n8n before 2.41.4 and on the 2.42.x line before 2.42.1. Where the condition is met, no authentication or user interaction is needed (PR:N/UI:N) and the injected SQL runs with the stored database credential's privileges. |
| Impact | The provided CVSS 4.0 base score is 7.0 (High), driven by a network attack vector (AV:N), low complexity (AC:L), no privileges (PR:N) and no user interaction (UI:N), but critically gated by AT:P - an attack requirement indicating that exploitation depends on a specific precondition, namely a workflow that binds untrusted input (e.g. webhook fields) into the Query field of the vulnerable Microsoft SQL node v1. The impact metrics are telling: the n8n host itself sees only low confidentiality impact (VC:L, VI:N, VA:N), while the subsequent system - the connected SQL Server database - sees high confidentiality and integrity impact and low availability impact (SC:H/SI:H/SA:L), reflecting classic SQL injection consequences against the backend DB with the stored credential's privileges. No EPSS score, CISA KEV listing, POC, or SSVC decision data was provided in the input, so exploitation probability and real-world exploitation status cannot be quantified. This is a genuine high-severity issue for environments that have built workflows feeding untrusted webhook data into the MSSQL node, but it is NOT a drop-everything universal risk: the AT:P requirement means default or well-designed workflows are not exposed, so this is closer to a configuration-dependent high-CVSS issue than an unconditional unauthenticated RCE-class flaw. Note the terminology tension to verify: the description states 'unauthenticated external callers can execute arbitrary SQL,' which aligns with PR:N, yet exploitation realistically depends on the victim having authored a vulnerable workflow - confirm the exposed-workflow assumption against your own n8n deployment. |
| Exploit ScenarioDerived | An organization runs an n8n workflow (version 1 of the Microsoft SQL node, n8n before 2.41.4 or 2.42.0-2.42.0) that takes input from a public webhook trigger and substitutes a webhook field value directly into the Query field expression. An unauthenticated external caller sends a crafted request to that webhook endpoint containing SQL metacharacters, which are concatenated into the SQL text without parameterisation and executed against the connected SQL Server with the stored credential's privileges. No public exploit identified at time of analysis, but the injection pattern is trivially reproducible given a known vulnerable workflow. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
SQL injection in the version 1 Microsoft SQL node of the n8n workflow automation platform lets unauthenticated external callers execute arbitrary SQL against a connected database whenever a workflow binds untrusted input (for example, webhook fields) into the node's Query field via an expression. Affected deployments are n8n before 2.41.4 and the 2.42.x line before 2.42.1; exploitation is strictly gated on that specific insecure workflow configuration (AT:P), so default installs and workflows that use parameterised inputs are not exposed. Injected statements run with the privileges of the credential stored in the node; no public exploit code and no confirmed active exploitation were identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to n8n 2.41.4 or later, or to 2.42.1 or later for installations on the 2.42.x line, as documented in the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-5qpp-pqww-h7fp. Where an immediate upgrade is not possible, the primary compensating control is to stop using version 1 of the Microsoft SQL node in any workflow that resolves untrusted external input - webhook bodies, webhook query parameters, or any caller-supplied field - into the Query field; the trade-off is that this requires auditing and re-authoring existing workflows, and any workflow left unchanged remains exploitable. A second option is to refactor the query so attacker-influenced values are passed as parameters rather than interpolated as text, or to replace dynamic query construction with a pre-approved, fixed statement plus a separate validated input step; both approaches require workflow redesign but remove the injection primitive entirely. Because the injected SQL executes with the stored credential's privileges, reducing the Microsoft SQL credential used by the node to the minimum required role limits the blast radius, at the cost of potentially breaking workflows that legitimately need broader access. Externally reachable webhook triggers should also be reviewed so that any field feeding a database node is validated against a strict allowlist before use; this is defence in depth and does not by itself fix the flawed query construction. Note that at time of analysis no vendor-released workaround other than upgrading was identified.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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, SQL Injection, arising because version 1 of the Microsoft SQL node substitutes expression-derived values directly into SQL text instead of using parameterised statements. In n8n, a workflow author can place an expression into the node's Query field; when that expression resolves to attacker-controlled data supplied from outside the workflow - the disclosure specifically calls out webhook fields - the resolved string is concatenated into the T-SQL sent to the configured Microsoft SQL Server instance. Because the query is executed under the stored database credential, the injected SQL inherits that credential's permissions, enabling reads and writes well beyond the intended statement. The n8n-side attack surface is the workflow trigger rather than an n8n service endpoint, which is why the assessed CVSS 3.1 vector carries AC:H and a Scope change (S:C) with C:H/I:H/A:L - the compromise crosses from the automation platform into the downstream database boundary. No CPE strings were supplied; the vendor advisory GHSA-5qpp-pqww-h7fp and the VulnCheck advisory (n8n before 2.41.4 and 2.42.1 SQL injection via Microsoft SQL node Query field) are the authoritative references for affected components.
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:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:L
Unauthenticated remote webhook delivery gives PR:N/UI:N, but the required vulnerable-workflow binding raises AC:H; scope changes to the backend database (S:C) with high read/write impact (C:H/I:H) and limited availability impact (A:L).
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
n8n before 2.41.4 and 2.42.x before 2.42.1 contains an SQL injection vulnerability in version 1 of the Microsoft SQL node, which substitutes Query field expression values directly into SQL text without parameterisation. When a workflow binds untrusted input such as webhook fields to the Query field, unauthenticated external callers can execute arbitrary SQL against the connected database with the stored credential's privileges.
Technical POC Analysis
Evidence caveat, stated up front: the only primary source supplied is advisory GHSA-5qpp-pqww-h7fp plus the CVE description.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A SQL injection flaw in the Microsoft SQL node of the n8n workflow automation platform allows external callers to run arbitrary SQL against connected databases wherever a workflow passes untrusted input, such as webhook fields, directly into the node's Query field. Environments running n8n versions before 2.41.4 or the 2.42.x line before 2.42.1 and using this insecure binding pattern are exposed, and injected statements execute with the privileges of the database credential stored in the node, creating a realistic path to data disclosure or manipulation. Leadership should care because business-critical data behind those credentials - customer records, financial data, or operational systems - could be accessed without any foothold in the corporate network; no public exploit code or confirmed active exploitation was identified at time of analysis, and default installations and workflows using parameterised inputs are not exposed.
No vendor-released patch identified at time of analysis. Interim mitigations: remove or disable Microsoft SQL nodes that bind untrusted input (for example webhook fields) into the Query field, or rewrite those queries as parameterised inputs that cannot accept injected SQL; restrict external reachability of affected n8n instances, especially publicly exposed webhook endpoints; enforce least privilege on the Microsoft SQL credentials stored in the node so injected statements cannot reach sensitive schemas; segment the n8n host from production databases and monitor application and database logs for anomalous SQL.
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
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
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
EUVD-2026-101723
GHSA-f8fm-f8xf-2rfr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB