CVE-2026-59257

n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation

State
Published
Severity
5.3 Medium
Published
Jul 8, 2026
Updated
Oct 29, 2026
Reserved
Jul 4, 2026

Read the record on cve.org

Description

n8n before 1.123.61, 2.x before 2.27.4, and 2.28.x before 2.28.1 contains a SQL injection vulnerability in the legacy MySQL v1 node's executeQuery operation. The operation substitutes evaluated {{ ... }} expression values directly into the raw SQL string without parameterization. When a workflow uses this operation with expression-sourced values and is connected to an externally-reachable trigger (such as a Webhook node), attacker-controlled input reaching those expressions results in SQL injection, allowing execution of arbitrary SQL with the configured MySQL credentials' privileges. The MySQL v2 node, which uses parameterized queries, is not affected.

Scores

CVSSScoreVectorSource
4.05.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:NVulnCheck

Weaknesses

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

Affected Products

ProductVersions
n8nn8n
  • before 1.123.61Affected
  • 1.123.61Not affected
n8nn8n
  • 2.28.0 to before 2.28.1Affected
  • 2.28.1Not affected
n8nn8n
  • 2.0.0-rc.0 to before 2.27.4Affected
  • 2.27.4Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.