Vulnerability · Published May 4, 2026 · Assigned by GitHub_M
CVE-2026-42237n8n: SQL Injection in Snowflake and MySQL Nodes
Medium 5.3
In plain English
A medium-severity SQL injection in n8n from n8n-io. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, the fix for GHSA-f3f2-mcxc-pwjx did not cover the Snowflake node or the legacy MySQL v1 node. Both nodes construct SQL queries by directly interpolating user-controlled table names, column names, and update keys into query strings without identifier escaping, enabling SQL injection against the connected database. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | n8n | 1.123.32 | GHSA-hp3c-vfpm-q4f7 |
| npm | n8n | 2.18.1 | GHSA-hp3c-vfpm-q4f7 |
| npm | n8n | 2.17.4 | GHSA-hp3c-vfpm-q4f7 |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
References
- https://github.com/n8n-io/n8n/security/advisories/GHSA-hp3c-vfpm-q4f7 x_refsource_CONFIRM