{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "n8n"
              },
              {
                "fixed": "2.41.4"
              },
              {
                "introduced": "2.42.x"
              },
              {
                "fixed": "2.42.1"
              }
            ],
            "source": "DESCRIPTION"
          },
          "events": [
            {
              "introduced": "9fbd4c0738aaae893990b342d256843fe139fd5a"
            },
            {
              "fixed": "063ba759a74de9d32debd423225c4fca5615891f"
            },
            {
              "introduced": "86c23326c9501f4ccf5bb68705aa8bb234fc2ad2"
            },
            {
              "fixed": "e1d17800aef6e82cda5d8e58908e00ae47a1af4b"
            }
          ],
          "repo": "https://github.com/n8n-io/n8n",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5qpp-pqww-h7fp"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/110xxx/CVE-2026-110840.json"
  },
  "details": "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.",
  "id": "CVE-2026-110840",
  "modified": "2026-10-16T02:30:45.108898432Z",
  "published": "2026-10-14T22:52:15.513Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/110xxx/CVE-2026-110840.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-5qpp-pqww-h7fp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-110840"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/n8n-before-2.41.4-and-2.42.1-sql-injection-via-microsoft-sql-node-query-field"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "n8n before 2.41.4 and 2.42.1 SQL Injection via Microsoft SQL Node Query Field"
}