Advisories / npm / n8n / CVE-2026-59257
n8n: MySQL v1 Node executeQuery Operation Allows SQL Injection via Unparameterized Expression Interpolation (CVE-2026-59257)
CVE-2026-59257 GHSA-hwmj-qg4v-cvg9 Published 22 Jul 2026
Fixed in n8n 1.123.61 and 2.27.4 and 2.28.1.
$ npm install n8n@^1.123.61 $ npm install n8n@^2.27.4 $ npm install n8n@^2.28.1
Run the one for the major version you’re on: each fix stays within its release line.
Which versions are affected
| Package | Affected | Fixed in |
|---|---|---|
| n8n | < 1.123.61≥ 2.0.0-rc.0, < 2.27.4≥ 2.28.0, < 2.28.1 | 1.123.612.27.42.28.1 |
Check a site from its project folder:
npm ls n8n
shows the installed version. Or paste the lock file into the lock file checker to check every package at once.
Timeline
- Advisory published, with a fix
Questions
Which version of n8n is safe from CVE-2026-59257?
2.28.1 and later. Versions affected: < 1.123.61, ≥ 2.0.0-rc.0, < 2.27.4, ≥ 2.28.0, < 2.28.1.