Description
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.
Published: 2026-10-14
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: Unrestricted database access via SQL injection
Action: Immediate Patch
AI Analysis

Impact

This flaw allows malicious actors to inject arbitrary SQL into the Microsoft SQL node’s query field, potentially executing any command that the database user can run. By doing so, an attacker can read, modify, or delete data, directly compromising the confidentiality and integrity of the connected database. The vulnerability stems from direct substitution of user-supplied expressions into SQL text without parameterization, classified as a classic SQL injection weakness.

Affected Systems

The affected product is n8n, developed by n8n-io. Versions prior to 2.41.4 and pre‑2.42.1 of the 2.42.x series are impacted. Workflows that bind external input such as webhook fields to the Microsoft SQL node’s query field are at risk.

Risk and Exploitability

The CVSS score of 7 indicates a moderate severity, and the vulnerability can be exploited by unauthenticated external callers. Based on the description, the likely attack vector involves sending crafted payloads to a publicly exposed webhook or trigger that feeds into the query field of the Microsoft SQL node. The EPSS score is not available, and this issue is not listed in the CISA KEV catalog, suggesting that while it is potentially impactful, current exploitation data is limited.

Generated by OpenCVE AI on October 15, 2026 at 12:12 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update n8n to version 2.41.4 or later (and 2.42.1 or later) to apply the vendor fix.
  • Limit exposure of the Microsoft SQL node to trusted users by restricting access to the webhook or trigger that populates the query field, or remove the node from public workflows.
  • Sanitize all inputs before binding them to the query field, ensuring that untrusted data is not directly inserted into SQL statements.

Generated by OpenCVE AI on October 15, 2026 at 12:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 14 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
Description 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.
Title n8n before 2.41.4 and 2.42.1 SQL Injection via Microsoft SQL Node Query Field
First Time appeared N8n
N8n n8n
Weaknesses CWE-89
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

{'score': 7, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-15T18:18:14.437Z

Reserved: 2026-10-14T22:12:22.054Z

Link: CVE-2026-110840

cve-icon Vulnrichment

Updated: 2026-10-15T18:18:10.723Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T23:17:24.320

Modified: 2026-10-15T19:17:23.960

Link: CVE-2026-110840

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T12:15:06Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')