Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-59257— n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation

AI Predicted 9.8 Difficulty: Easy EPSS 0.31% · P23

Affected Version Matrix 6

VendorProductVersion RangeStatus
n8nn8n< 1.123.61affected
1.123.61unaffected
< 2.28.1affected
2.28.1unaffected
< 2.27.4affected
2.27.4unaffected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-59257

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation
Source: NVD (National Vulnerability Database)
Vulnerability Description
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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: NVD (National Vulnerability Database)
Vulnerability Title
n8n SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
n8n是n8n公司开源的一个可扩展的工作流自动化工具。 n8n存在SQL注入漏洞,该漏洞源于legacy MySQL v1节点executeQuery操作中未对表达式值进行参数化,直接将评估后的{{ ... }}表达式值替换到原始SQL字符串中,当工作流使用此操作并连接外部可访问触发器(如Webhook节点)时,攻击者控制的输入可导致SQL注入,从而使用配置的MySQL凭据权限执行任意SQL。以下版本受到影响:1.123.61之前版本、2.27.4之前版本和2.28.1之前版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
n8nn8n 0 ~ 1.123.61 -
n8nn8n 0 ~ 2.28.1 -
n8nn8n 0 ~ 2.27.4 -

II. Public POCs for CVE-2026-59257

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59257

登录查看更多情报信息。

Vendor Advisories for CVE-2026-59257 (2)

Same Patch Batch · n8n · 2026-07-08 · 7 CVEs total

CVE-2026-567767.4 HIGHn8n - Incorrect OAuth Scope Validation in Workflow Test Run Endpoint
CVE-2026-567786.4 MEDIUMn8n - Authorization Bypass in Public API Execution Retry Endpoint
CVE-2026-563595.4 MEDIUMn8n - Cross-Site Scripting in Credential Management OAuth2 Authorization URL
CVE-2026-567755.4 MEDIUMn8n - Incorrect OAuth Scope Validation in Evaluation Test Runs Endpoints
CVE-2026-563604.0 MEDIUMn8n - Webhook Forgery via Unsigned POST Requests in ZendeskTrigger
CVE-2026-59253n8n - Improper Authorization in Workflow Assignment to Folders

IV. Related Vulnerabilities

V. Comments for CVE-2026-59257

No comments yet


Leave a comment