{"id":"CVE-2026-59257","published":"2026-07-08T13:49:13Z","modified":"2026-10-29T21:16:04Z","title":"n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation","vendor":"n8n","product":"n8n","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00572,"percentile":0.41125,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/n8n-sql-injection-in-mysql-v1-executequery-operation-via-expression-interpolation","tags":["third-party-advisory"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":8.22},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"n8n","affectedVersions":[{"vendor":"n8n","product":"n8n","versions":["< 1.123.61"]},{"vendor":"n8n","product":"n8n","versions":[">= 2.28.0, < 2.28.1"]},{"vendor":"n8n","product":"n8n","versions":[">= 2.0.0-rc.0, < 2.27.4"]}],"fixedVersions":[{"vendor":"n8n","product":"n8n","versions":["1.123.61"]},{"vendor":"n8n","product":"n8n","versions":["2.28.1"]},{"vendor":"n8n","product":"n8n","versions":["2.27.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-09T13:39:34.978946Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"n8n","vulnerableRanges":["<1.123.61",">=2.28.0, <2.28.1",">=2.0.0-rc.0, <2.27.4"],"patched":["1.123.61","2.28.1","2.27.4"],"from":["GHSA-hwmj-qg4v-cvg9"],"provenance":"source"}],"summary":{"text":"The flaw is a SQL injection in the legacy MySQL v1 node's executeQuery operation in n8n, where evaluated expression values are substituted directly into the raw SQL string without parameterization (the MySQL v2 node is not affected). An attacker who can supply input that reaches those expressions through an externally reachable trigger, such as a Webhook node, can execute arbitrary SQL with the privileges of the configured MySQL credentials, requiring low privileges and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:31Z"},"euvd":{"id":"EUVD-2026-42269","exploited":false,"provenance":"source"}}