SQL Injection Affecting n8n package, versions <1.123.61>=2.0.0 <2.27.4>=2.28.0 <2.28.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (24th percentile)

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-N8N-17900552
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditUnknown

Introduced: 8 Jul 2026

NewCVE-2026-59257  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade n8n to version 1.123.61, 2.27.4, 2.28.1 or higher.

Overview

n8n is a n8n Workflow Automation Tool

Affected versions of this package are vulnerable to SQL Injection in the MySQL v1 node's executeQuery operation, which interpolates evaluated {{ ... }} expression values directly into raw SQL strings without parameterization. An attacker can execute arbitrary SQL against the connected database, with the privileges of the configured MySQL account, by supplying data to an externally reachable trigger such as a Webhook node whose value is interpolated into the query. Exploitation requires a workflow that uses the MySQL v1 node's executeQuery with expression interpolation wired to an externally reachable trigger, and the impact is bounded by the privileges of that database account.

Workaround

This vulnerability can be avoided by requiring authentication on the externally reachable trigger endpoints, such as the Webhook node, so untrusted callers cannot supply the values interpolated into the query.

CVSS Base Scores

version 4.0
version 3.1