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-41641

CVE-2026-41641: NocoBase SQL Injection Vulnerability

CVE-2026-41641 is a SQL injection flaw in NocoBase that allows attackers to bypass validation and execute arbitrary SQL queries. This article covers technical details, affected versions, impact, and mitigation.

Published: May 7, 2026

CVE-2026-41641 Overview

CVE-2026-41641 is a SQL injection vulnerability in NocoBase, an AI-powered no-code/low-code platform for building business applications. The flaw exists in versions prior to 2.0.39, where the checkSQL() validation function is missing on the sqlCollection:update endpoint. The validation correctly blocks dangerous SQL keywords such as pg_read_file, LOAD_FILE, and dblink on the collections:create and sqlCollection:execute endpoints, but the update path was overlooked. An attacker with collection management permissions can bypass all SQL keyword filtering and execute arbitrary queries. The issue is tracked under CWE-89 and patched in version 2.0.39.

Critical Impact

Authenticated attackers with collection management rights can execute arbitrary SQL, read sensitive files, and exfiltrate database contents from NocoBase deployments.

Affected Products

  • NocoBase versions prior to 2.0.39
  • NocoBase @nocobase/plugin-collection-sql plugin
  • Self-hosted and managed NocoBase business application deployments

Discovery Timeline

  • 2026-05-07 - CVE-2026-41641 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-41641

Vulnerability Analysis

NocoBase exposes resource endpoints for managing SQL-backed collections. The checkSQL() function inspects user-supplied SQL strings and rejects dangerous keywords that enable file system reads, cross-database links, or other privileged operations. This filter is consistently applied on collections:create and sqlCollection:execute actions.

The sqlCollection:update action handler did not invoke checkSQL() before persisting changes. An attacker can create a SQL collection with benign content, pass the initial validation, then update the collection with malicious SQL that contains forbidden keywords. When the collection is queried, the stored SQL executes against the underlying database with full application privileges.

Root Cause

The root cause is inconsistent input validation across CRUD handlers in packages/plugins/@nocobase/plugin-collection-sql/src/server/resources/sql.ts. The update resolver accepted the sql parameter from ctx.action.params.values and forwarded it to the persistence layer without invoking the centralized validator.

Attack Vector

Exploitation requires authenticated access with collection management permissions. The attacker first issues a POST to collections:create with safe SQL to establish a SQL collection. The attacker then issues a PUT to sqlCollection:update containing SQL with previously blocked keywords such as pg_read_file('/etc/passwd') or LOAD_FILE(). A subsequent read against the collection triggers execution of the injected SQL, returning arbitrary query results to the attacker.

typescript
       await next();
     },
     update: async (ctx: Context, next: Next) => {
+      const { sql } = ctx.action.params.values || {};
+      if (sql) {
+        try {
+          checkSQL(sql);
+        } catch (e) {
+          ctx.throw(400, ctx.t(e.message));
+        }
+      }
       const transaction = await ctx.app.db.sequelize.transaction();
       try {
         const { upRes } = await updateCollection(ctx, transaction);

Source: GitHub commit 851aee5 — the patch adds the missing checkSQL() call to the update handler so that SQL passed during collection updates is subject to the same keyword denylist as create and execute paths.

Detection Methods for CVE-2026-41641

Indicators of Compromise

  • HTTP PUT or POST requests to sqlCollection:update containing keywords like pg_read_file, LOAD_FILE, dblink, COPY, or xp_cmdshell in the sql field
  • Database query logs showing SELECT statements that read filesystem paths or initiate outbound connections
  • Sudden modifications to existing SQL collections shortly after their creation by the same user account

Detection Strategies

  • Inspect NocoBase application logs for repeated sqlCollection:update calls from a single principal followed by sqlCollection:list or read actions on the same collection
  • Compare the SQL stored in collection definitions against the checkSQL() denylist; flag any persisted SQL containing prohibited functions
  • Correlate authenticated user sessions with database-side audit logs to identify queries running under the application service account that touch system tables or files

Monitoring Recommendations

  • Enable database-level auditing for functions such as pg_read_file, pg_ls_dir, COPY ... FROM PROGRAM, and LOAD_FILE
  • Alert on any NocoBase API access from accounts that newly acquire collection management roles
  • Monitor egress traffic from the database host for unexpected outbound connections that may indicate dblink-style exfiltration

How to Mitigate CVE-2026-41641

Immediate Actions Required

  • Upgrade NocoBase to version 2.0.39 or later, which adds checkSQL() validation on the update endpoint
  • Audit all existing SQL collections for stored SQL containing denylisted keywords and remove or rewrite them
  • Review the membership of roles granting collection management permissions and revoke unnecessary access

Patch Information

The fix is delivered in NocoBase v2.0.39 via pull request #9134 and commit 851aee5. Full details are documented in GHSA-wrwh-c28m-9jjh.

Workarounds

  • Restrict collection management permissions to a minimal set of trusted administrators until patching completes
  • Run the database service account with least privilege, denying file system read and cross-database link permissions where feasible
  • Place a reverse proxy or web application firewall rule in front of NocoBase to inspect sqlCollection:update payloads for forbidden SQL keywords
bash
# Upgrade NocoBase to the patched release
npm install @nocobase/app@2.0.39
yarn nocobase upgrade
yarn nocobase restart

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechNocobase

  • SeverityHIGH

  • CVSS Score7.2

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request Review

  • GitHub Release Version 2.0.39

  • GitHub Security Advisory GHSA-wrwh-c28m-9jjh
  • Related CVEs
  • CVE-2026-41640: NocoBase SQL Injection Vulnerability

  • CVE-2026-34825: NocoBase Workflow SQL Injection Vulnerability

  • CVE-2026-40346: NocoBase SSRF Vulnerability

  • CVE-2026-6224: NocoBase Workflow JavaScript RCE 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