🔍 CVE-2026-59257

8.8
CVSS Score
HIGH
2026-07-08
2026-10-25 20:10
✅ 완료

🇰🇷 한글 설명

n8n의 레거시 MySQL v1 노드 내 executeQuery 작업에서 SQL 인젝션 취약점이 발견되었습니다. 외부에서 접근 가능한 트리거를 통해 전달된 입력값이 매개변수화 없이 SQL 쿼리에 직접 삽입되어, 공격자가 데이터베이스 권한을 탈취할 수 있습니다.

💡 쉬운 설명

웹훅 등을 통해 들어온 악성 데이터가 데이터베이스 명령어로 변질되어 실행될 수 있는 보안 결함입니다. 이를 통해 해커가 데이터베이스의 정보를 훔치거나 조작할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

n8n < 1.123.61, 2.x < 2.27.4, 2.28.x < 2.28.1

⚔️ 공격 벡터

외부 노출된 트리거(Webhook 등)를 통해 조작된 입력값을 SQL 쿼리 표현식에 전달

🛡️ 대응 방법

n8n을 최신 버전(1.123.61, 2.27.4 또는 2.28.1 이상)으로 업데이트하거나 MySQL v2 노드로 교체

🔧 검증 코드

출력된 n8n 버전을 확인하여 취약한 버전 범위에 해당하는지 체크

Shell / Script
npm list -g n8n | grep n8n

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

MySQL