CVE-2026-40608 Details
Description
Next AI Draw.io is a next.js web application that integrates AI capabilities with draw.io diagrams. Prior to 0.4.15, 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. Node.js buffers the entire payload in the V8 heap. Sending a sufficiently large body (e.g., 500 MiB or more) will exhaust the process heap memory, leading to an Out-of-Memory (OOM) error that crashes the MCP server. This vulnerability is fixed in 0.4.15.
A denial-of-service vulnerability has been identified in Next AI Draw.io versions prior to 0.4.15. The issue arises in the embedded HTTP sidecar, which contains three POST handlers that process incoming requests by accumulating the entire request body into a JavaScript string without any size limitations. This unbounded accumulation allows for the possibility of sending excessively large payloads, such as 500 MiB or more, which can exhaust the process heap memory. The result is an Out-of-Memory error that crashes the MCP server, disrupting active user sessions and causing the loss of unsaved diagram states.
Users can update to Next AI Draw.io version 0.4.15 or later, where this vulnerability has been fixed. For those using the MCP server, it's recommended to enforce a maximum body size limit in each POST handler before processing the request. This can be done by replacing the existing body accumulation logic with a version that checks the payload size and responds with a 413 status code if the limit is exceeded.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/DayuanJiang/next-ai-draw-io/security/advisories/GHSA-9q7h-wgfw-p378 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/DayuanJiang/next-ai-draw-io/commit/31819f413cc4b329a1cb81e5fccd0cd98c1fd665 | [email protected] | Patch |
| https://github.com/DayuanJiang/next-ai-draw-io/security/advisories/GHSA-9q7h-wgfw-p378 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| dayuanjiang next ai draw.io | < 0.4.15 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 21, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | New CVE Received | [email protected] |