{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-59257",
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "state": "PUBLISHED",
        "assignerShortName": "VulnCheck",
        "dateReserved": "2026-07-04T12:17:14.302Z",
        "datePublished": "2026-07-08T13:49:13.618Z",
        "dateUpdated": "2026-10-29T21:16:04.286Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
                "shortName": "VulnCheck",
                "dateUpdated": "2026-10-29T21:16:04.286Z"
            },
            "datePublic": "2026-06-24T00:00:00.000Z",
            "title": "n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
                            "cweId": "CWE-89",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "n8n",
                    "product": "n8n",
                    "defaultStatus": "unaffected",
                    "packageURL": "pkg:npm/n8n",
                    "versions": [
                        {
                            "version": "0",
                            "status": "affected",
                            "versionType": "semver",
                            "lessThan": "1.123.61"
                        },
                        {
                            "version": "1.123.61",
                            "status": "unaffected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "vendor": "n8n",
                    "product": "n8n",
                    "defaultStatus": "unaffected",
                    "packageURL": "pkg:npm/n8n",
                    "versions": [
                        {
                            "version": "2.28.0",
                            "status": "affected",
                            "versionType": "semver",
                            "lessThan": "2.28.1"
                        },
                        {
                            "version": "2.28.1",
                            "status": "unaffected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "vendor": "n8n",
                    "product": "n8n",
                    "defaultStatus": "unaffected",
                    "packageURL": "pkg:npm/n8n",
                    "versions": [
                        {
                            "version": "2.0.0-rc.0",
                            "status": "affected",
                            "versionType": "semver",
                            "lessThan": "2.27.4"
                        },
                        {
                            "version": "2.27.4",
                            "status": "unaffected",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*",
                                    "versionEndExcluding": "1.123.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*",
                                    "versionEndExcluding": "2.28.1",
                                    "versionStartIncluding": "2.28.0"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*",
                                    "versionEndExcluding": "2.27.4",
                                    "versionStartIncluding": "2.0.0-rc.0"
                                }
                            ]
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV4_0": {
                        "version": "4.0",
                        "vectorString": "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",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "LOW",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "HIGH",
                        "subIntegrityImpact": "HIGH",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 5.3,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-hwmj-qg4v-cvg9",
                    "name": "GitHub Security Advisory (GHSA-hwmj-qg4v-cvg9)",
                    "tags": [
                        "vendor-advisory"
                    ]
                },
                {
                    "name": "VulnCheck Advisory: n8n - SQL Injection in MySQL v1 executeQuery Operation via Expression Interpolation",
                    "tags": [
                        "third-party-advisory"
                    ],
                    "url": "https://www.vulncheck.com/advisories/n8n-sql-injection-in-mysql-v1-executequery-operation-via-expression-interpolation"
                }
            ],
            "x_generator": {
                "engine": "vulncheck-endgame"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-07-09T13:39:34.978946Z",
                                "id": "CVE-2026-59257",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-07-09T13:39:51.132Z"
                }
            }
        ]
    }
}