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

CVE-2026-40331: Masa CMS SQL Injection Vulnerability

CVE-2026-40331 is a SQL injection flaw in Masa CMS that allows unauthenticated attackers to extract sensitive database information. This article covers the technical details, affected versions, impact, and mitigation steps.

Published: May 7, 2026

CVE-2026-40331 Overview

CVE-2026-40331 is an unauthenticated SQL injection vulnerability [CWE-89] in Masa CMS, an open source content management system. The flaw exists in the JSON API, which accepts an altTable parameter stored via the setAltTable() method without validation or sanitization. The unsanitized value is injected directly into a SQL FROM clause inside feedGateway.cfc. An attacker can supply an arbitrary subquery to read sensitive data from any database table in a single HTTP request, including administrative credentials and password reset tokens. The issue affects Masa CMS versions 7.2.0 through 7.2.9, 7.3.0 through 7.3.14, 7.4.0 through 7.4.9, and 7.5.0 through 7.5.2.

Critical Impact

Unauthenticated attackers can extract administrative credentials and password reset tokens from any database table in a single HTTP request.

Affected Products

  • Masa CMS versions 7.2.0 through 7.2.9
  • Masa CMS versions 7.3.0 through 7.3.14
  • Masa CMS versions 7.4.0 through 7.4.9 and 7.5.0 through 7.5.2

Discovery Timeline

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

Technical Details for CVE-2026-40331

Vulnerability Analysis

The vulnerability resides in the unauthenticated JSON API exposed by Masa CMS. The API accepts an altTable request parameter and passes it to the setAltTable() method on feedBean.cfc without input validation. The stored value is later concatenated directly into the SQL FROM clause constructed by feedGateway.cfc. Because no parameterization or allow-list filtering occurs, the attacker controls the table reference.

An attacker can replace the table name with an arbitrary subquery, turning a single HTTP request into a database read primitive. The query executes with the privileges of the application database account, which typically has read access to every CMS table. Sensitive data including administrative credentials and password reset tokens are exposed, enabling account takeover and full administrative compromise of the CMS.

Root Cause

The root cause is missing input validation on the altTable parameter combined with unsafe SQL composition. The setAltTable() setter accepts any string, and feedGateway.cfc interpolates that string directly into a SQL statement. This pattern matches CWE-89: Improper Neutralization of Special Elements used in an SQL Command.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker sends a crafted HTTP request to the JSON API endpoint with an altTable parameter containing a SQL subquery. The injected subquery executes within the feed gateway's database context. Output is returned in the JSON response, allowing efficient extraction of credential hashes, session data, and reset tokens. See the GitHub Security Advisory for additional technical details.

Detection Methods for CVE-2026-40331

Indicators of Compromise

  • HTTP requests to the Masa CMS JSON API containing an altTable parameter with non-alphanumeric characters, parentheses, or SELECT keywords.
  • Web server access logs showing repeated JSON API calls from a single source with varying altTable values.
  • Database query logs containing unusual FROM clauses referencing subqueries or unexpected table names.
  • Unexpected reads against users, password_reset, or other credential-bearing tables originating from the CMS application account.

Detection Strategies

  • Inspect HTTP request payloads for the altTable parameter and alert on values that are not simple alphanumeric identifiers.
  • Enable database query logging and flag queries where the FROM clause contains nested SELECT statements issued by the CMS service account.
  • Deploy WAF signatures targeting SQL injection patterns within JSON API request bodies and query strings.

Monitoring Recommendations

  • Forward web server, application, and database logs to a centralized analytics platform for correlation of injection attempts and downstream data access.
  • Monitor administrative account activity for unexpected logins or password changes that follow suspicious JSON API requests.
  • Track outbound data volumes from the CMS database server to identify bulk extraction.

How to Mitigate CVE-2026-40331

Immediate Actions Required

  • Upgrade Masa CMS to version 7.2.10, 7.3.15, 7.4.10, or 7.5.3, matching your current major version line.
  • If patching is delayed, disable the JSON API at the web server or application level until the upgrade is applied.
  • Rotate administrative credentials and invalidate outstanding password reset tokens after patching, since prior exposure cannot be ruled out.

Patch Information

The Masa CMS maintainers fixed the vulnerability in versions 7.2.10, 7.3.15, 7.4.10, and 7.5.3. The fix adds validation to setAltTable() so that only simple alphanumeric table names are accepted. Refer to the GitHub Security Advisory GHSA-jphh-r686-6w7j for release details.

Workarounds

  • Apply input validation to the setAltTable function in core/mura/content/feed/feedBean.cfc to restrict input to alphanumeric table names.
  • Disable the JSON API entirely if it is not required by your deployment.
  • Restrict network access to the JSON API endpoint using firewall rules or reverse-proxy ACLs while remediation is in progress.
bash
# Configuration example: block JSON API at a reverse proxy until patched
location ~* /index\.cfm/_api/json/ {
    return 403;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechMasa Cms

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/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
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40330: Masa CMS SQL Injection Vulnerability

  • CVE-2026-40329: Masa CMS SQL Injection Vulnerability

  • CVE-2024-32640: MASA CMS SQL Injection Vulnerability

  • CVE-2026-40332: Masa CMS Open Redirect 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