CVE-2026-40608 Next AI Draw.io: Unbounded HTTP Body — Denial of Service
Attackers can crash the application by sending excessively large HTTP request bodies to specific API endpoints, exhausting server memory.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-40608?
CVE-2026-40608 is a medium-severity denial of service vulnerability in DayuanJiang next-ai-draw-io, published on 21 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-770
Which versions are affected by CVE-2026-40608?
It affects 1 product.
Products include Dayuanjiang Next Ai Draw.io.
How do I fix CVE-2026-40608?
No fix has been published for CVE-2026-40608 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-40608 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40608 exists.
Sources
Also known as GHSA-9q7h-wgfw-p378.