The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42237

CVE-2026-42237: N8n Workflow Automation SQL Injection Flaw

CVE-2026-42237 is an SQL injection vulnerability in N8n workflow automation affecting Snowflake and MySQL v1 nodes. Attackers can exploit unescaped user input to execute malicious SQL queries. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 7, 2026

CVE-2026-42237 Overview

CVE-2026-42237 is a SQL injection vulnerability in n8n, an open source workflow automation platform. The flaw resides in the Snowflake node and the legacy MySQL v1 node, both of which build SQL queries by directly interpolating user-controlled table names, column names, and update keys into query strings without identifier escaping. This issue extends a prior fix tracked as GHSA-f3f2-mcxc-pwjx, which did not cover these two nodes. An authenticated attacker with workflow editing privileges can inject arbitrary SQL against the connected database. Maintainers patched the flaw in versions 1.123.32, 2.17.4, and 2.18.1.

Critical Impact

Authenticated workflow operators can execute arbitrary SQL statements against connected Snowflake or MySQL databases, compromising data confidentiality and integrity beyond the n8n trust boundary.

Affected Products

  • n8n versions prior to 1.123.32 (1.x branch)
  • n8n versions prior to 2.17.4 (2.17 branch)
  • n8n versions prior to 2.18.1, including 2.18.0

Discovery Timeline

  • 2026-05-04 - CVE-2026-42237 published to NVD
  • 2026-05-06 - Last updated in NVD database

Technical Details for CVE-2026-42237

Vulnerability Analysis

The vulnerability is classified as SQL Injection [CWE-89]. It affects two database nodes shipped with n8n: the Snowflake node and the legacy MySQL v1 node. Both nodes accept user-controlled values for table names, column names, and update keys when configuring workflow operations.

Instead of escaping these identifiers or binding them through parameterized APIs, the nodes concatenate the values directly into the resulting SQL query strings. An attacker who can edit or trigger a workflow can therefore introduce arbitrary SQL fragments into queries executed against the backing database.

The scope impact extends beyond n8n itself. Successful exploitation operates within the privileges of the configured database credentials, which often include write access to production data warehouses or transactional databases.

Root Cause

The root cause is missing identifier escaping in query construction logic. SQL identifiers such as table and column names cannot be parameterized through standard prepared statements and instead require driver-specific quoting. The original remediation for GHSA-f3f2-mcxc-pwjx introduced safe escaping for several nodes but omitted the Snowflake and legacy MySQL v1 implementations, leaving identifier interpolation intact in those code paths.

Attack Vector

Exploitation requires network access to the n8n instance and authenticated low-privilege access sufficient to configure or run workflows that use the Snowflake or MySQL v1 nodes. The attacker supplies malicious payloads in fields treated as identifiers, breaking out of the intended identifier context to append arbitrary SQL clauses. No user interaction is required once a tampered workflow executes. The vulnerability manifests during query construction inside the affected nodes; refer to the n8n GitHub Security Advisory GHSA-hp3c-vfpm-q4f7 for technical details.

Detection Methods for CVE-2026-42237

Indicators of Compromise

  • Workflow definitions referencing the Snowflake node or legacy MySQL v1 node with non-standard characters such as backticks, quotes, semicolons, or comment markers in table or column name fields.
  • Database audit logs showing unexpected UNION, DROP, INSERT, or schema enumeration statements originating from the n8n service account.
  • n8n execution logs containing workflow runs that produced syntactically malformed or unusually long SQL queries against Snowflake or MySQL targets.

Detection Strategies

  • Inventory all workflows that invoke the Snowflake node or MySQL v1 node and review their identifier fields for static, expected values only.
  • Correlate n8n workflow execution events with database query logs to flag dynamic identifiers sourced from expressions or external inputs.
  • Alert on n8n service account database sessions issuing data definition language (DDL) or cross-schema queries inconsistent with normal workflow behavior.

Monitoring Recommendations

  • Enable verbose query logging on Snowflake and MySQL targets used by n8n and forward events to a centralized analytics platform.
  • Monitor n8n audit logs for workflow edits to nodes affected by GHSA-hp3c-vfpm-q4f7, especially by non-administrator users.
  • Track outbound data volumes from databases connected to n8n to identify potential exfiltration attempts driven by injected SELECT statements.

How to Mitigate CVE-2026-42237

Immediate Actions Required

  • Upgrade n8n to version 1.123.32, 2.17.4, or 2.18.1 depending on the deployed branch.
  • Audit existing workflows that use the Snowflake or legacy MySQL v1 nodes and validate that identifier fields contain only trusted, static values.
  • Rotate database credentials used by n8n if exploitation is suspected, and review database audit logs for unauthorized statements.

Patch Information

Maintainers released fixes in n8n 1.123.32, 2.17.4, and 2.18.1. The patches add identifier escaping to the Snowflake node and the legacy MySQL v1 node, aligning their query construction with the remediation previously applied for GHSA-f3f2-mcxc-pwjx. Refer to the n8n GitHub Security Advisory GHSA-hp3c-vfpm-q4f7 for the authoritative fix details.

Workarounds

  • Migrate workflows from the legacy MySQL v1 node to the current MySQL node, which is not affected by this issue.
  • Restrict the database privileges of the account used by n8n to the minimum required tables and operations to limit injection impact.
  • Limit workflow editing permissions in n8n to a small, trusted set of users until patched versions are deployed.
bash
# Upgrade n8n via npm to a fixed release
npm install -g n8n@2.18.1

# Or pin a fixed Docker image version
docker pull n8nio/n8n:2.18.1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechN8n

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42233: N8n Workflow Automation SQL Injection Flaw

  • CVE-2026-42229: N8n Workflow Automation SQL Injection Flaw

  • CVE-2026-33713: n8n Workflow Automation SQL Injection Flaw

  • CVE-2026-27497: n8n Workflow Automation SQL Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English