SCA: security update for n8n (GHSA-hwmj-qg4v-cvg9)

medium Tenable Cloud Security Plugin ID 445194

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-59257)

Solution

Update the n8n library and its related packages to version 1.123.61 or later.

See Also

https://github.com/advisories/GHSA-hwmj-qg4v-cvg9

Plugin Details

Severity: Medium

ID: 445194

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 7/23/2026

Updated: 7/23/2026

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.08

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-59257

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 5.3

Threat Score: 1.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 7/22/2026

Vulnerability Publication Date: 7/8/2026

Reference Information

CVE: CVE-2026-59257

cwe: CWE-89