CVE-2026-42237
JSON

5.3medium

n8n: SQL Injection in Snowflake and MySQL Nodes

Severity
5.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-hp3c-vfpm-q4f7

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

Product or packageVersionsReported by
n8n-io n8n< 1.123.32, >= 2.17.0, < 2.17.4, >= 2.18.0, < 2.18.1CVE List
n8n (npm)before 1.123.32, from 2.18.0 before 2.18.1, from 2.0.0 before 2.17.4GitHub Advisory Database
n8n n8nbefore 1.123.32, from 2.17.0 before 2.17.4, 2.18.0NVD

All scores

GitHub_M5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
GitHub8.2medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Impact

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.

Exploitation requires a specific workflow configuration:

  • The Snowflake or MySQL v1 node must be used with user-controlled input passed via expressions (e.g., from a form or webhook) into identifier fields such as table name, column name, or update key.

Successful exploitation could allow data exfiltration, modification, or deletion on the downstream database.

Patches

The issue has been fixed in n8n versions 1.123.32, 2.17.4, and 2.18.1. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Migrate workflows from the legacy MySQL v1 node to the MySQL v2 node, which already implements identifier escaping.
  • Disable the Snowflake node by adding n8n-nodes-base.snowflake to the NODES_EXCLUDE environment variable.
  • Avoid passing unvalidated external user input into table name, column name, or update key fields via expressions in the affected nodes.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

NVD (es)

n8n es una plataforma de automatización de flujos de trabajo de código abierto. Anteriormente a las versiones 1.123.32, 2.17.4 y 2.18.1, la corrección para GHSA-f3f2-mcxc-pwjx no cubría el nodo Snowflake ni el nodo MySQL v1 heredado. Ambos nodos construyen consultas SQL interpolando directamente nombres de tablas, nombres de columnas y claves de actualización controlados por el usuario en cadenas de consulta sin escape de identificadores, lo que permite la inyección SQL contra la base de datos conectada. Este problema ha sido parcheado en las versiones 1.123.32, 2.17.4 y 2.18.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42237 changed 2026-05-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-hp3c-vfpm-q4f7 changed 2026-05-08CC-BY-4.0
NVDCVE-2026-42237 changed 2026-11-11Public domain