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

CVE-2026-8336: MongoDB Server DoS Vulnerability

CVE-2026-8336 is a post-authentication denial-of-service flaw in MongoDB Server that allows authenticated users to crash mongod via JavaScript engine exploitation. This article covers technical details, affected versions, and mitigation.

Published: May 17, 2026

CVE-2026-8336 Overview

CVE-2026-8336 is a post-authentication denial-of-service vulnerability in MongoDB Server. An authenticated user can crash mongod by invoking $_internalJsEmit, which is not intended to be directly accessible, or by abusing the mapreduce command's map function. The crash occurs when the server-side JavaScript engine is subsequently used through operators such as $where, $function, or the mapreduce reduce stage. The flaw is rooted in a use-after-free condition [CWE-416] within the JavaScript execution path. MongoDB Server v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2 are affected.

Critical Impact

An authenticated attacker with low privileges can trigger a server crash, causing a denial-of-service condition that disrupts database availability for all connected clients.

Affected Products

  • MongoDB Server v8.2 prior to 8.2.9
  • MongoDB Server v8.3 prior to 8.3.2
  • Deployments exposing server-side JavaScript operators ($where, $function, mapreduce)

Discovery Timeline

  • 2026-05-13 - CVE-2026-8336 published to NVD
  • 2026-05-15 - Last updated in NVD database

Technical Details for CVE-2026-8336

Vulnerability Analysis

The vulnerability resides in MongoDB's server-side JavaScript execution subsystem. MongoDB exposes JavaScript evaluation through operators including $where, $function, and the mapreduce command's map and reduce stages. The internal function $_internalJsEmit is intended for use only within the server's internal map-emit pipeline and is not a publicly supported API.

When an authenticated user invokes $_internalJsEmit directly, or supplies a crafted map function to the mapreduce command, the server enters an inconsistent state. A subsequent operation that re-enters the JavaScript engine through $where, $function, or the mapreduce reduce stage dereferences memory that has already been released. This use-after-free condition [CWE-416] causes mongod to terminate.

Root Cause

The root cause is improper lifetime management of internal JavaScript engine objects. State established during the initial misuse of $_internalJsEmit or the map function leaves dangling references. The next JavaScript-backed query operation accesses those freed structures, producing the crash. The issue is tracked publicly in MongoDB JIRA Ticket SERVER-121610.

Attack Vector

Exploitation requires network access to the MongoDB instance and valid authentication credentials with permission to execute queries that invoke JavaScript. The attacker first issues a query containing $_internalJsEmit or a malformed mapreduce map function. The attacker then issues a follow-up query that triggers the JavaScript engine. The second query crashes the mongod process, terminating all active connections and halting database service until the process is restarted.

No verified public proof-of-concept code is available. Refer to the vendor ticket for technical reproduction details.

Detection Methods for CVE-2026-8336

Indicators of Compromise

  • Unexpected mongod process crashes or restart loops correlated with authenticated user query activity
  • Audit log entries containing $_internalJsEmit issued by client sessions
  • mapreduce commands followed shortly by $where or $function queries that precede a fatal signal in the MongoDB log
  • Sudden loss of client connections accompanied by server stack traces referencing the JavaScript scope or interpreter

Detection Strategies

  • Enable MongoDB auditing and filter for command payloads referencing $_internalJsEmit, since legitimate clients should never use this internal symbol
  • Correlate mongod crash events with the preceding authenticated session's command history to identify the originating user
  • Monitor query telemetry for sequences combining mapreduce and JavaScript operators originating from the same authenticated principal

Monitoring Recommendations

  • Ship MongoDB audit logs and mongod crash logs to a centralized analytics platform for correlation across instances
  • Alert on repeated abnormal terminations of mongod within a short window across a replica set
  • Track per-user usage of server-side JavaScript operators and flag privileged accounts that begin executing mapreduce or $where unexpectedly

How to Mitigate CVE-2026-8336

Immediate Actions Required

  • Upgrade MongoDB Server v8.2 deployments to 8.2.9 or later, and v8.3 deployments to 8.3.2 or later
  • Audit existing role assignments and remove JavaScript-execution privileges from accounts that do not require them
  • Review application code to confirm no client legitimately calls $_internalJsEmit, then alert on any future occurrences

Patch Information

MongoDB has resolved the issue in MongoDB Server 8.2.9 and 8.3.2. Apply the corresponding fixed release for your major version. Track the upstream fix and additional engineering context through MongoDB JIRA Ticket SERVER-121610.

Workarounds

  • Disable server-side JavaScript by starting mongod with --noscripting or setting security.javascriptEnabled: false where applications do not require $where, $function, or mapreduce
  • Restrict network exposure of MongoDB to trusted application tiers and enforce least-privilege role-based access control
  • Limit mapreduce and JavaScript operator usage to dedicated service accounts that are tightly monitored
bash
# Configuration example: disable server-side JavaScript in mongod.conf
security:
  authorization: enabled
  javascriptEnabled: false

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMongodb

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:L/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:N/R:A/V:D/RE:M/U:Red
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • MongoDB JIRA Ticket SERVER-121610
  • Related CVEs
  • CVE-2026-9100: MongoDB C Driver GridFS DOS Vulnerability

  • CVE-2026-8843: MongoDB Server DOS Vulnerability

  • CVE-2026-8199: MongoDB DoS Vulnerability via Bitwise Match

  • CVE-2026-8202: MongoDB Server DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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