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

CVE-2026-30241: Mercurius GraphQL Adapter DOS Vulnerability

CVE-2026-30241 is a denial of service flaw in Mercurius GraphQL adapter for Fastify that allows attackers to bypass query depth limits via WebSocket subscriptions. This article covers technical details, affected versions, and patches.

Published: March 13, 2026

CVE-2026-30241 Overview

CVE-2026-30241 is a GraphQL Vulnerability affecting Mercurius, a popular GraphQL adapter for Fastify. The vulnerability exists because Mercurius fails to enforce the configured queryDepth limit on GraphQL subscription queries received over WebSocket connections. While the depth check is correctly applied to HTTP queries and mutations, subscription queries are parsed and executed without invoking the depth validation, allowing attackers to bypass intended security restrictions.

Critical Impact

Remote attackers can submit arbitrarily deeply nested subscription queries over WebSocket, bypassing depth restrictions. On schemas with recursive types, this can lead to denial of service through exponential data resolution on each subscription event.

Affected Products

  • Mercurius versions prior to 16.8.0
  • Mercurius for Node.js applications using WebSocket subscriptions
  • Applications with recursive GraphQL types and queryDepth limits configured

Discovery Timeline

  • 2026-03-06 - CVE CVE-2026-30241 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-30241

Vulnerability Analysis

This vulnerability represents an Incorrect Authorization (CWE-863) issue where the security control responsible for enforcing query depth limits operates inconsistently across different transport mechanisms. The Mercurius GraphQL adapter implements query depth validation as a protective measure against resource exhaustion attacks, but this validation is only triggered for standard HTTP-based GraphQL operations.

When a client establishes a WebSocket connection for GraphQL subscriptions, the incoming subscription queries bypass the depth validation logic entirely. This creates a security gap where the same deeply nested query that would be rejected over HTTP is accepted and executed when submitted as a subscription over WebSocket.

The network-accessible nature of this vulnerability means any remote client capable of establishing a WebSocket connection can exploit this flaw without authentication. The primary impact is on system availability, as deeply nested queries on recursive schema types can trigger exponential data resolution, consuming server resources and potentially causing denial of service conditions.

Root Cause

The root cause lies in the architectural separation between HTTP and WebSocket query processing within Mercurius. The depth validation middleware was implemented specifically for the HTTP request handling path but was not integrated into the WebSocket subscription handler. This oversight means that while the queryDepth configuration option exists and functions for standard queries, the WebSocket subscription path does not call the same validation function before executing incoming subscription queries.

Attack Vector

The attack vector is network-based, requiring no user interaction or special privileges. An attacker can exploit this vulnerability by:

  1. Connecting to the target application's WebSocket endpoint used for GraphQL subscriptions
  2. Crafting a subscription query with nesting depth exceeding the configured queryDepth limit
  3. Submitting the deeply nested subscription query over the WebSocket connection
  4. Triggering subscription events that cause the server to resolve the excessively nested query structure

On schemas containing recursive types (such as self-referential relationships), each subscription event forces the server to traverse and resolve the deeply nested query tree. This can lead to exponential resource consumption, effectively causing a denial of service condition that persists as long as the subscription remains active and events are triggered.

The vulnerability is particularly dangerous in applications that have intentionally configured queryDepth limits as a security measure, as administrators may have a false sense of protection while WebSocket subscriptions remain unprotected.

Detection Methods for CVE-2026-30241

Indicators of Compromise

  • Unusual WebSocket connection patterns with high-frequency subscription requests
  • Server resource exhaustion (CPU and memory spikes) coinciding with active GraphQL subscriptions
  • Error logs indicating slow query resolution or timeout conditions during subscription events
  • Network traffic analysis showing deeply nested GraphQL subscription payloads over WebSocket

Detection Strategies

  • Monitor WebSocket connections for GraphQL subscription queries that exceed expected nesting depths
  • Implement application-level logging to track subscription query complexity metrics
  • Deploy GraphQL-aware intrusion detection rules that analyze query structure regardless of transport
  • Compare resource utilization patterns between HTTP GraphQL operations and WebSocket subscriptions

Monitoring Recommendations

  • Enable verbose logging for the Mercurius GraphQL layer to capture all incoming subscription queries
  • Set up alerting for abnormal memory or CPU consumption on servers handling GraphQL workloads
  • Implement query analysis middleware that logs depth metrics for all GraphQL operations including subscriptions
  • Monitor WebSocket connection duration and subscription activity for anomalous patterns

How to Mitigate CVE-2026-30241

Immediate Actions Required

  • Upgrade Mercurius to version 16.8.0 or later immediately
  • Review application logs for evidence of exploitation attempts involving deeply nested subscriptions
  • Consider temporarily disabling WebSocket subscriptions if upgrade is not immediately possible
  • Implement network-level rate limiting on WebSocket endpoints as a defense-in-depth measure

Patch Information

The vulnerability has been patched in Mercurius version 16.8.0. The fix ensures that the queryDepth validation is consistently applied to all GraphQL operations regardless of the transport mechanism. The patch commit (5b56f60f4b0d60780b0ff499a479bd830bdd6986) integrates depth checking into the WebSocket subscription handling path.

For detailed patch information, refer to the GitHub Security Advisory and the associated commit.

Workarounds

  • Implement custom middleware to validate query depth for WebSocket subscriptions before processing
  • Use a reverse proxy or API gateway with GraphQL inspection capabilities to enforce depth limits
  • Restrict WebSocket subscription access to authenticated users only as a compensating control
  • Consider implementing query cost analysis as an additional layer of protection beyond depth limits

The vulnerability mechanism involves bypassing the configured queryDepth limit specifically for WebSocket subscription queries. The recommended mitigation is upgrading to the patched version, but if immediate upgrade is not feasible, implementing custom depth validation in subscription resolvers or restricting WebSocket access can provide temporary protection. See the GitHub Security Advisory for additional technical details on implementing workarounds.

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMercurius

  • SeverityLOW

  • CVSS Score2.7

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/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
  • AvailabilityLow
  • CWE References
  • CWE-863
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-64166: Mercurius GraphQL Adapter CSRF 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