CVE-2026-59257N8n
Medium 5.3
Follow: this CVE · N8n · N8n We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 4.0
- 5.3
- EPSS
- —
- Auth required
- Yes
- Published
- Jul 8, 2026
- Updated
- Oct 29, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for N8n.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | n8n |
< 1.123.61 |
1.123.61 |
npm install n8n@1.123.61 |
| npm | n8n |
≥ 2.28.0 < 2.28.1 |
2.28.1 |
npm install n8n@2.28.1 |
| npm | n8n |
≥ 2.0.0-rc.0 < 2.27.4 |
2.27.4 |
npm install n8n@2.27.4 |
Per OSV / GitHub Advisories (GHSA-hwmj-qg4v-cvg9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| n8n | n8n | < 1.123.61 |
| n8n | n8n | ≥ 2.0.0 < 2.27.4 |
| n8n | n8n | 2.28.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Vendor Advisory
- www.vulncheck.com Third Party Advisory