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

CVE-2026-59257: n8n: MySQL v1 Node executeQuery Operation Allows SQL Injection via Unparameterized Expression Interpolation

July 22, 2026

The legacy MySQL v1 node’s executeQuery operation substitutes evaluated {{ ... }} expression values directly into the raw SQL string without parameterization. If a workflow uses this operation with expression-sourced values in the query and is connected to an externally-reachable trigger (such as a Webhook node), attacker-controlled input reaching those expressions results in SQL injection.

Successful exploitation allows arbitrary SQL execution with the configured MySQL credentials’ privileges, enabling unauthorized disclosure, modification, or deletion of data in the downstream database. MySQL v2 node is not affected.

This issue can affect only instances running workflows that use the MySQL v1 node with executeQuery operations.

References

  • github.com/advisories/GHSA-hwmj-qg4v-cvg9
  • github.com/n8n-io/n8n/releases/tag/n8n@1.123.61
  • github.com/n8n-io/n8n/releases/tag/n8n@2.27.4
  • github.com/n8n-io/n8n/releases/tag/n8n@2.28.1
  • github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9
  • nvd.nist.gov/vuln/detail/CVE-2026-59257
  • www.vulncheck.com/advisories/n8n-sql-injection-in-mysql-v1-executequery-operation-via-expression-interpolation

Code Behaviors & Features

Detect and mitigate CVE-2026-59257 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.61, all versions starting from 2.0.0-rc.0 before 2.27.4, all versions starting from 2.28.0 before 2.28.1

Fixed versions

  • 1.123.61
  • 2.27.4
  • 2.28.1

Solution

Upgrade to versions 1.123.61, 2.27.4, 2.28.1 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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-59257.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:19:21 +0000.