SQL injection in n8n - CVE-2026-59257

 

SQL injection in n8n - CVE-2026-59257

Published: June 25, 2026 / Updated: September 14, 2026


Vulnerability identifier: #VU135228
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59257
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL commands.

The vulnerability exists due to improper neutralization of special elements used in an SQL command in the MySQL v1 node executeQuery operation when processing expression-sourced values in raw SQL queries. A remote attacker can supply crafted input through an externally reachable trigger to execute arbitrary SQL commands.

This issue affects only workflows that use the MySQL v1 node with the executeQuery operation, and exploitation requires attacker-controlled input to reach interpolated {{ ... }} expressions.


Affected software

n8n

How to mitigate CVE-2026-59257

Install security update from vendor's website.

n8n - addressed in versions 1.123.61, 2.27.4, 2.28.1

External References

Related Security Bulletins