SQL Injection Affecting n8n-nodes-base package, versions <2.4.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-N8NNODESBASE-15360949
  • published27 Feb 2026
  • disclosed26 Feb 2026
  • creditPawel Bednarz

Introduced: 26 Feb 2026

New CVE NOT AVAILABLE CWE-89  (opens in a new tab)

How to fix?

Upgrade n8n-nodes-base to version 2.4.0 or higher.

Overview

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to SQL Injection via the MySQL, PostgreSQL, and Microsoft SQL nodes due to improper escaping of identifier values. An attacker can execute arbitrary SQL commands by supplying specially crafted table or column names through node configuration parameters.

Workaround

This vulnerability can be mitigated by limiting workflow creation and editing permissions to fully trusted users only, or by disabling the MySQL, PostgreSQL, and Microsoft SQL nodes via the NODES_EXCLUDE environment variable.

CVSS Base Scores

version 4.0
version 3.1