Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. n8n
  4. ›
  5. CVE-2026-42237

CVE-2026-42237: n8n has SQL Injection in Snowflake and MySQL Nodes

April 29, 2026 (updated May 10, 2026)

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.

References

  • github.com/advisories/GHSA-hp3c-vfpm-q4f7
  • github.com/n8n-io/n8n/security/advisories/GHSA-f3f2-mcxc-pwjx
  • github.com/n8n-io/n8n/security/advisories/GHSA-hp3c-vfpm-q4f7
  • nvd.nist.gov/vuln/detail/CVE-2026-42237

Code Behaviors & Features

Detect and mitigate CVE-2026-42237 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.123.32, all versions starting from 2.0.0 before 2.17.4, all versions starting from 2.18.0 before 2.18.1

Fixed versions

  • 1.123.32
  • 2.17.4
  • 2.18.1

Solution

Upgrade to versions 1.123.32, 2.17.4, 2.18.1 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

npm/n8n/CVE-2026-42237.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:56 +0000.