CVE-2026-59257 n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- MySQL
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| n8n | < 1.123.61; = 2.28.0; >= 2.0.0, < 2.27.4 | 1.123.61, 2.27.4 | Fixed |
| npm n8n | < 1.123.61; >= 2.0.0-rc.0, < 2.27.4; >= 2.28.0, < 2.28.1 | 1.123.61, 2.27.4, 2.28.1 | Fixed |
| npm n8n(npm) | < 1.123.61; >= 2.0.0-rc.0, < 2.27.4; >= 2.28.0, < 2.28.1 | 1.123.61, 2.27.4, 2.28.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm n8n | < 1.123.61 | 1.123.61 |
| npm n8n | >= 2.28.0, < 2.28.1 | 2.28.1 |
| npm n8n | >= 2.0.0-rc.0, < 2.27.4 | 2.27.4 |
| npm n8n(npm) | < 1.123.61 | 1.123.61 |
| npm n8n(npm) | >= 2.28.0, < 2.28.1 | 2.28.1 |
| npm n8n(npm) | >= 2.0.0-rc.0, < 2.27.4 | 2.27.4 |
| n8n | < 1.123.61 | 1.123.61 |
| n8n | >= 2.0.0, < 2.27.4 | 2.27.4 |
| n8n | = 2.28.0 | No fix listed |
References
- GitHub Security Advisory (GHSA-hwmj-qg4v-cvg9) mitigation vendor-advisory
- VulnCheck Advisory: n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com
- github.com
- github.com
- github.com product
- ENISA EUVD EUVD-2026-42269 third-party-advisory