SQL injection in n8n Microsoft SQL node via Query field
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
n8n versions before 2.41.4 and from 2.42.0 before 2.42.1 are affected. The version 1 Microsoft SQL node inserts Query field values directly into SQL text without parameterisation, which is an SQL injection flaw (CWE-89). When a workflow passes untrusted input such as webhook fields into the Query field, an unauthenticated external caller can run arbitrary SQL against the connected database with the stored credential's privileges.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade n8n to version 2.41.4 or to version 2.42.1.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
- Fix · CNA n8n (n8n-io) Fixed in 2.41.4, 2.42.1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
n8n-io n8n 2.41.4, 2.42.1
6 records Highest priority Priority LOW 6 LOW
Other records, highest priority first
- TI-2026-74536 Signature bypass in n8n Send-and-Wait waiting-webhook endpointPriority LOW 39
- TI-2026-74533 Unbounded OAuth client creation in n8n lets attackers fill diskPriority LOW 35
- TI-2026-74532 Prototype pollution in n8n MCP tool enables owner account takeoverPriority LOW 35
Timeline
- 2026-10-15 Threatist record created from CVE-2026-110840
- 2026-10-15 CISA SSVC decision points changed
- 2026-10-15 Priority changed: MEDIUM → LOW
References
More n8n vulnerabilities
- TI-2025-42131 n8n Vulnerable to Remote Code Execution via Expression Injection KEVCVSS 3.1CRITICAL 10.0
- TI-2026-17560 n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling CVSS 3.1CRITICAL 10.0
- TI-2026-01167 Authenticated users can bypass the Expression sandbox mechanism to achieve full remote… CVSS 3.1CRITICAL 9.9
- TI-2026-00644 Sandbox escape in n8n Python task runner allows for arbitrary code execution on the underlying host. CVSS 3.1CRITICAL 9.9
- TI-2026-82991 Code execution in n8n via deprecated Function nodes CVSS 4.0HIGH 8.7
- TI-2025-35293 An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3… CVSS 3.1HIGH 8.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences