CVE Catalog

CVE-2026-59257

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.31%

23th percentile - higher than 23% of all known CVEs

Summary

A SQL injection vulnerability in n8n before versions 1.123.61, 2.x before 2.27.4, and 2.28.x before 2.28.1 exists in the legacy MySQL v1 node's executeQuery operation. Evaluated {{ ... }} expression values are substituted directly into the raw SQL string without parameterization, allowing an attacker to inject arbitrary SQL through input reaching these expressions when the workflow is connected to an externally reachable trigger (e.g., Webhook).

Risk Assessment

The organization is at risk of unauthorized access to the MySQL database, data leakage or modification, and potential compromise of the database server with the privileges of the configured MySQL user.

Recommendation

Immediately upgrade n8n to version 1.123.61, 2.27.4, or 2.28.1 depending on the branch used. Additionally, migrate from the legacy MySQL v1 node to the MySQL v2 node, which uses parameterized queries.

Other vulnerabilities in n8n

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS