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

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-07-08T13:49:13.618Z
- Modified: 2026-10-29T21:16:04.286Z
- Also known as: GHSA-hwmj-qg4v-cvg9
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- n8n n8n: before 1.123.61; from 2.28.0 before 2.28.1; from 2.0.0-rc.0 before 2.27.4; from 2.0.0 before 2.27.4; 2.28.0 (not affected: 1.123.61; 2.28.1; 2.27.4)
- n8n (npm): before 1.123.61; from 2.28.0 before 2.28.1; from 2.0.0-rc.0 before 2.27.4

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9> (mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/n8n-sql-injection-in-mysql-v1-executequery-operation-via-expression-interpolation> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59257> (advisory)
- <https://github.com/n8n-io/n8n> (package)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.61> (web)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@2.27.4> (web)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@2.28.1> (web)

## Sources

- CVE List: [CVE-2026-59257](https://www.cve.org/CVERecord?id=CVE-2026-59257), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-hwmj-qg4v-cvg9](https://github.com/advisories/GHSA-hwmj-qg4v-cvg9), CC-BY-4.0, modified 2026-07-22
- NVD: [CVE-2026-59257](https://nvd.nist.gov/vuln/detail/CVE-2026-59257), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-59257 · Whole record: https://cve.day/CVE-2026-59257.json · Rebuilt by cve.day 2026-11-25T22:59:27.373Z
