CVE-2026-59257 json
n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation
published 2026-07-08 4 mo ago modified 2026-10-29 10 d ago also GHSA-hwmj-qg4v-cvg9 , EUVD-2026-42269
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm n8n 1.123.61, 2.27.4, 2.28.1
- n8n n8n 1.123.61, 2.27.4, 2.28.1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 4 mo ago
Exploit prediction
0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.3 | 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 |
| CNA | 4.0 | 5.3 | 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 |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | n8n | <1.123.61 >=2.28.0, <2.28.1 >=2.0.0-rc.0, <2.27.4 |
1.123.61 2.28.1 2.27.4 |
Affected products
- n8n n8n
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9
vendor-advisory, web, mitigation
-
vulncheck.com
/advisories/n8n-sql-injection-in-mysql-v1-executequery-operation-via-expression-interpolation
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-59257
advisory
-
github.com
/n8n-io/n8n
package
-
github.com
/n8n-io/n8n/releases/tag/n8n@1.123.61
web
-
github.com
/n8n-io/n8n/releases/tag/n8n@2.27.4
web
-
github.com
/n8n-io/n8n/releases/tag/n8n@2.28.1
web
Sources
- CVE List CVE-2026-59257
- GitHub Advisory GHSA-hwmj-qg4v-cvg9
- NVD CVE-2026-59257
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.