CVE-2026-59257

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
cpe:2.3:a:n8n:n8n:2.28.0:*:*:*:*:node.js:*:*

History

25 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) n8n anterior a 1.123.61, 2.x anterior a 2.27.4, y 2.28.x anterior a 2.28.1 contiene una vulnerabilidad de inyección SQL en la operación executeQuery del nodo MySQL v1 heredado. La operación sustituye los valores de expresiones {{ ... }} evaluados directamente en la cadena SQL sin procesar sin parametrización. Cuando un flujo de trabajo utiliza esta operación con valores originados en expresiones y está conectado a un disparador accesible externamente (como un nodo Webhook), la entrada controlada por el atacante que llega a esas expresiones resulta en inyección SQL, permitiendo la ejecución de SQL arbitrario con los privilegios de las credenciales de MySQL configuradas. El nodo MySQL v2, que utiliza consultas parametrizadas, no se ve afectado.

08 Jul 2026, 19:09

Type Values Removed Values Added
References () https://github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9 - () https://github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9 - Mitigation, Vendor Advisory
References () https://www.vulncheck.com/advisories/n8n-sql-injection-in-mysql-v1-executequery-operation-via-expression-interpolation - () https://www.vulncheck.com/advisories/n8n-sql-injection-in-mysql-v1-executequery-operation-via-expression-interpolation - Third Party Advisory
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 8.8
First Time N8n
N8n n8n
CPE cpe:2.3:a:n8n:n8n:2.28.0:*:*:*:*:node.js:*:*
cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*

08 Jul 2026, 14:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-08 14:17

Updated : 2026-10-29 19:17


NVD link : CVE-2026-59257

Mitre link : CVE-2026-59257

CVE.ORG link : CVE-2026-59257


JSON object : View

Products Affected

n8n

  • n8n
CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')