Description
n8n before version 2.4.0 contains a sql injection vulnerability in MySQL, PostgreSQL, and Microsoft SQL nodes that allows authenticated users to inject arbitrary SQL through unescaped identifier values in node configuration parameters. Attackers with workflow creation permissions can supply specially crafted table or column names to execute unauthorized database commands and compromise data integrity.
Problem types
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Product status
Any version before 2.4.0
2.4.0 (semver)
References
github.com/...io/n8n/security/advisories/GHSA-f3f2-mcxc-pwjx (GitHub Security Advisory (GHSA-f3f2-mcxc-pwjx))
www.vulncheck.com/...ysql-postgresql-and-microsoft-sql-nodes (VulnCheck Advisory: n8n - SQL Injection in MySQL, PostgreSQL, and Microsoft SQL Nodes)