---
id: CVE-2026-110840
title: >-
  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
summary: >-
  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 b…
severity: high
cvss: 7
cvssVector: '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'
cwe:
  - CWE-89
vendor: n8n-io
product: n8n
affected:
  - n8n < 2.41.4
  - n8n >= 2.42.0 < 2.42.1
published: '2026-10-14'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:17:23.960'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-110840'
references:
  - url: 'https://github.com/n8n-io/n8n/security/advisories/GHSA-5qpp-pqww-h7fp'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/n8n-before-2.41.4-and-2.42.1-sql-injection-via-microsoft-sql-node-query-field
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-15T18:18:03.289728Z'
cvssSource: cna
ingestedAt: '2026-10-15T00:02:07.174Z'
epss: 0.00292
epssPercentile: 0.21891
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
