Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-39857

CVE-2026-39857: ApostropheCMS Auth Bypass Vulnerability

CVE-2026-39857 is an authorization bypass flaw in ApostropheCMS that exposes protected fields through REST API query parameters. This article covers the technical details, affected versions, security impact, and mitigation.

Published: April 17, 2026

CVE-2026-39857 Overview

ApostropheCMS, an open-source Node.js content management system, contains an authorization bypass vulnerability in versions 4.28.0 and prior. The vulnerability exists in the choices and counts query parameters of the REST API, where these query builders execute MongoDB distinct() operations that bypass the publicApiProjection restrictions intended to limit which fields are exposed publicly.

Critical Impact

Unauthenticated attackers can extract all distinct field values for protected schema fields, including sensitive data protected by viewPermission, without authentication.

Affected Products

  • ApostropheCMS versions 4.28.0 and prior
  • ApostropheCMS piece-type REST API
  • ApostropheCMS page REST API

Discovery Timeline

  • 2026-04-15 - CVE-2026-39857 published to NVD
  • 2026-04-16 - Last updated in NVD database

Technical Details for CVE-2026-39857

Vulnerability Analysis

This authorization bypass vulnerability stems from a fundamental mismatch between how ApostropheCMS applies security projections and how MongoDB's distinct() operation functions. The choices and counts query parameters are processed via applyBuildersSafely before the projection is applied, but MongoDB's distinct operation does not respect projections, returning all distinct values directly.

The vulnerability affects multiple field types including string, integer, float, select, boolean, date, slug, and relationship fields. Fields protected with viewPermission are similarly exposed, and the counts variant additionally reveals document frequency for each distinct value. This information disclosure can be leveraged to enumerate sensitive data, understand data distributions, or gather reconnaissance for further attacks.

Root Cause

The root cause is the architectural disconnect between MongoDB's distinct() operator behavior and ApostropheCMS's projection-based access control model. When publicApiProjection is configured to restrict public API access to specific fields, the choices and counts query builders bypass this protection because:

  1. The parameters are processed via applyBuildersSafely before projections are applied
  2. MongoDB's distinct operation inherently ignores projection constraints
  3. Results are returned without filtering against publicApiProjection or removeForbiddenFields

Attack Vector

An unauthenticated attacker can exploit this vulnerability remotely over the network by crafting malicious REST API requests. By specifying protected field names in the choices or counts query parameters, attackers can extract distinct values that should be restricted by publicApiProjection. The attack requires no user interaction and can be performed with low complexity against any exposed ApostropheCMS instance running vulnerable versions.

The security patch introduces a new choicesFieldAllowedByProjection method that validates whether a filter is permitted to expose distinct values based on the active publicApiProjection:

javascript
      // Returns true if the named filter is permitted to expose distinct
      // values through the `choices` / `counts` query builders given the
      // publicApiProjection. When no publicApiProjection is in effect
      // (authenticated API callers), all fields are permitted.
      //
      // This guards against leaking distinct values of fields excluded by
      // `publicApiProjection`, since MongoDB's `distinct` operator ignores
      // projections. Projections set explicitly by authenticated users are
      // not restricted — they are a voluntary narrowing of query results,
      // not a security boundary.
      choicesFieldAllowedByProjection(filter, projection) {
        if (!projection || !Object.keys(projection).length) {
          return true;
        }
        // Builders that aren't named after a top-level schema field are
        // not gated by the projection.
        const field = self.schema.find(f => f.name === filter);
        if (!field) {
          return true;
        }
        const topLevel = filter.split('.')[0];
        const values = Object.values(projection);
        const hasInclusion = values.some(v => v && v !== 0);
        const hasExclusion = values.some(v => v === 0 || v === false);
        if (hasInclusion) {
          // Inclusion projection: field must be explicitly included.
          return Boolean(projection[topLevel]);

Source: GitHub Commit

Detection Methods for CVE-2026-39857

Indicators of Compromise

  • Unusual API requests containing choices or counts query parameters targeting protected fields
  • High-volume REST API requests from unauthenticated sources querying field metadata
  • API access logs showing requests to piece-type or page endpoints with enumeration patterns

Detection Strategies

  • Monitor web server access logs for REST API requests containing choices= or counts= query strings
  • Implement rate limiting on public API endpoints to detect enumeration attempts
  • Review application logs for unusual patterns of unauthenticated API access
  • Deploy Web Application Firewall (WAF) rules to flag suspicious query parameter combinations

Monitoring Recommendations

  • Enable detailed logging for all REST API endpoints exposing content types
  • Set up alerts for anomalous API request patterns from single IP addresses
  • Monitor for sequential requests attempting to enumerate multiple field types
  • Track authentication bypass attempts through security information and event management (SIEM) systems

How to Mitigate CVE-2026-39857

Immediate Actions Required

  • Upgrade ApostropheCMS to version 4.29.0 or later immediately
  • Review publicApiProjection configurations to ensure sensitive fields are properly protected
  • Audit API access logs for evidence of prior exploitation attempts
  • Temporarily disable public API access if immediate patching is not possible

Patch Information

The vulnerability has been fixed in ApostropheCMS version 4.29.0. The patch introduces the choicesFieldAllowedByProjection method in @apostrophecms/doc-type module and properly propagates publicApiProjection settings in the @apostrophecms/page module. The fix ensures that MongoDB distinct() operations respect the same field-level access controls as other API operations.

For detailed information about the fix, refer to the GitHub Security Advisory GHSA-c276-fj82-f2pq and the security patch commit.

Workarounds

  • Restrict public API access using network-level controls (firewall rules, IP allowlisting)
  • Implement additional authentication requirements for API endpoints exposing sensitive content
  • Use reverse proxy configuration to block requests containing choices or counts parameters for unauthenticated users
bash
# Example nginx configuration to block vulnerable parameters for unauthenticated requests
location /api/ {
    # Block choices and counts parameters for public access
    if ($arg_choices) {
        return 403;
    }
    if ($arg_counts) {
        return 403;
    }
    proxy_pass http://apostrophecms_backend;
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechApostrophecms

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

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

  • GitHub Security Advisory GHSA-c276-fj82-f2pq
  • Related CVEs
  • CVE-2026-33888: ApostropheCMS Authorization Bypass Flaw

  • CVE-2026-32730: ApostropheCMS Auth Bypass Vulnerability

  • CVE-2026-33889: ApostropheCMS Stored XSS Vulnerability

  • CVE-2026-40186: ApostropheCMS sanitize-html XSS 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