CVE-2026-59257
published medium CVSS 4.0 · 5.3n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n8n | — | n8n0 to < 1.123.61 (affected · semver) · 1.123.61 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| n8n | — | n8n2.28.0 to < 2.28.1 (affected · semver) · 2.28.1 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| n8n | — | n8n2.0.0-rc.0 to < 2.27.4 (affected · semver) · 2.27.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n8n | n8n | 0 to < 1.123.61 (affected · semver)1.123.61 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| n8n | n8n | 2.28.0 to < 2.28.1 (affected · semver)2.28.1 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| n8n | n8n | 2.0.0-rc.0 to < 2.27.4 (affected · semver)2.27.4 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
2- GitHub Security Advisory (GHSA-hwmj-qg4v-cvg9) https://github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9
- VulnCheck Advisory: n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation https://www.vulncheck.com/advisories/n8n-sql-injection-in-mysql-v1-executequery-operation-via-expression-interpolation
Provider assertions
2VulnCheck · cna
n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 21c2494db4c7d7a47217be74c67805789d4706425c8af0caa43fbad124ca740f
- Ingested
- 29 Oct 2026, 21:23:06 UTC
- Source record
- Official CVE record