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

CVE-2026-40608: Next AI Draw.io DoS Vulnerability

CVE-2026-40608 is a denial of service flaw in Next AI Draw.io that allows attackers to crash the server by exhausting heap memory. This post covers the technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-40608 Overview

Next AI Draw.io is a Next.js web application that integrates AI capabilities with draw.io diagrams. A memory exhaustion vulnerability exists in versions prior to 0.4.15 that allows attackers to crash the MCP server by sending oversized HTTP request bodies to specific API endpoints.

The embedded HTTP sidecar contains three POST handlers (/api/state, /api/restore, and /api/history-svg) that process incoming requests by accumulating the entire request body into a JavaScript string without any size limitations. Since Node.js buffers the entire payload in the V8 heap, sending a sufficiently large body (e.g., 500 MiB or more) exhausts the process heap memory, leading to an Out-of-Memory (OOM) error that crashes the MCP server.

Critical Impact

Unauthenticated attackers can cause complete denial of service by crashing the MCP server through memory exhaustion, disrupting AI-powered diagramming functionality for all users.

Affected Products

  • Next AI Draw.io versions prior to 0.4.15
  • MCP server HTTP sidecar component
  • Applications using vulnerable /api/state, /api/restore, and /api/history-svg endpoints

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-40608 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40608

Vulnerability Analysis

This vulnerability is classified as CWE-770 (Allocation of Resources Without Limits or Throttling). The core issue stems from the HTTP sidecar's request handling implementation in the MCP server component. When processing POST requests to the affected endpoints, the server accumulates request body data into a JavaScript string variable without enforcing any maximum size constraints.

Node.js's V8 JavaScript engine stores strings in heap memory. When an attacker sends a multi-hundred megabyte request body, the entire payload is buffered in memory before processing. This design flaw enables trivial resource exhaustion attacks where an attacker can force the server to allocate memory until the V8 heap limit is exceeded, triggering an OOM crash.

The attack requires local access to the vulnerable endpoints but does not require authentication or user interaction, making it straightforward to exploit in environments where the MCP server is accessible.

Root Cause

The root cause is missing input validation on the HTTP request body size in the packages/mcp-server/src/http-server.ts file. The original implementation used Node.js's standard request event handling to accumulate body chunks into a string without checking the cumulative size against any threshold. This allows unbounded memory allocation proportional to the attacker-controlled request payload size.

Attack Vector

The attack vector is local network access to the MCP HTTP server endpoints. An attacker can exploit this vulnerability by:

  1. Identifying an exposed Next AI Draw.io instance with the MCP server running
  2. Sending a POST request to /api/state, /api/restore, or /api/history-svg endpoints
  3. Including an extremely large request body (500 MiB or more)
  4. The server attempts to buffer the entire payload in memory
  5. V8 heap exhaustion triggers an OOM error, crashing the MCP server process

The security patch implements a readBody helper function that tracks cumulative chunk size and returns HTTP 413 (Payload Too Large) when the 10 MiB limit is exceeded:

typescript
const MAX_BODY_BYTES = 10 * 1024 * 1024 // 10 MiB

function readBody(
    req: http.IncomingMessage,
    res: http.ServerResponse,
    cb: (body: string) => void,
): void {
    let body = ""
    let size = 0
    req.on("data", (chunk: Buffer) => {
        size += chunk.length
        if (size > MAX_BODY_BYTES) {
            res.writeHead(413, { "Content-Type": "application/json" })
            res.end(JSON.stringify({ error: "Payload too large" }))
            req.destroy()
            return
        }
        body += chunk
    })
    req.on("end", () => cb(body))
}

Source: GitHub Commit 31819f4

Detection Methods for CVE-2026-40608

Indicators of Compromise

  • Unusually large POST requests (>10 MiB) targeting /api/state, /api/restore, or /api/history-svg endpoints
  • MCP server process crashes with OOM errors in logs
  • Repeated server restarts or service unavailability patterns
  • Memory utilization spikes followed by process termination

Detection Strategies

  • Monitor HTTP request body sizes for POST requests to MCP server endpoints and alert on requests exceeding normal operational thresholds
  • Implement application-level logging to track memory allocation patterns in the Node.js process
  • Configure process monitoring to detect unexpected MCP server crashes and correlate with incoming request logs
  • Deploy web application firewall rules to block oversized request bodies before they reach the application

Monitoring Recommendations

  • Enable memory profiling and heap size monitoring for Node.js processes running the MCP server
  • Set up alerting on HTTP 413 responses if using the patched version, as these may indicate exploitation attempts
  • Monitor for repeated connection attempts from single sources sending large payloads
  • Track service availability metrics for the MCP server component

How to Mitigate CVE-2026-40608

Immediate Actions Required

  • Upgrade Next AI Draw.io to version 0.4.15 or later immediately
  • Implement network-level request size limits using reverse proxy or load balancer configurations
  • Restrict access to the MCP server endpoints to trusted networks only
  • Enable rate limiting on the affected API endpoints

Patch Information

The vulnerability is fixed in Next AI Draw.io version 0.4.15. The patch introduces a MAX_BODY_BYTES constant set to 10 MiB and a new readBody helper function that validates incoming chunk sizes against this limit. When exceeded, the server responds with HTTP 413 and destroys the request, preventing memory exhaustion.

For detailed patch information, see the GitHub Security Advisory GHSA-9q7h-wgfw-p378 and the commit implementing the fix.

Workarounds

  • Deploy a reverse proxy (nginx, HAProxy) in front of the MCP server with request body size limits configured
  • Implement network segmentation to restrict access to the MCP server from untrusted networks
  • Use a web application firewall to enforce maximum request body sizes at the edge
  • Monitor and automatically restart the MCP server process if crashes are detected while working toward patching
bash
# Configuration example - nginx request body size limit
# Add to nginx server or location block for MCP endpoints
client_max_body_size 10m;

# Or for specific location blocks:
location /api/state {
    client_max_body_size 10m;
    proxy_pass http://mcp-server:3000;
}

location /api/restore {
    client_max_body_size 10m;
    proxy_pass http://mcp-server:3000;
}

location /api/history-svg {
    client_max_body_size 10m;
    proxy_pass http://mcp-server:3000;
}

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechNext Ai Draw

  • SeverityMEDIUM

  • CVSS Score6.2

  • EPSS Probability0.01%

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

  • GitHub Security Advisory GHSA-9q7h-wgfw-p378
  • Latest CVEs
  • CVE-2026-25874: LeRobot RCE Vulnerability

  • CVE-2026-41272: Flowise LLM Builder SSRF Vulnerability

  • CVE-2026-41268: Flowise RCE Vulnerability

  • CVE-2026-41265: Flowise Airtable Agent 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