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 8, 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
  • 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. Learn more about Dependency Scanning →

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.18.1
  • 2.17.4

Solution

Upgrade to versions 1.123.32, 2.17.4, 2.18.1 or above.

Impact 8.8 HIGH

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

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 Sat, 09 May 2026 12:19:45 +0000.