# CVE-2026-59257: n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation

> CVE-2026-59257: n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation. CVSS 8.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-59257
Last updated: 2026-10-25T20:10:00Z

- Published: 2026-07-08 13:49 UTC · Updated: 2026-10-25 20:10 UTC · Assigner: VulnCheck
- CVSS: 8.8 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.57%, 47th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-89

## 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.

## Affected vendors and products

- n8n: n8n

## Tracked companies

- [n8n](https://rewindex.com/company/n8n.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-59257)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-59257)
- [https://github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9](https://github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9)
- [https://www.vulncheck.com/advisories/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)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-59257 · Markdown: https://rewindex.com/cve/CVE-2026-59257.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-59257 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:12:55.366Z
