Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40608: CWE-770: Allocation of Resources Without Limits or Throttling in DayuanJiang next-ai-draw-io

0
Medium
VulnerabilityCVE-2026-40608cvecve-2026-40608cwe-770
Published: Tue Apr 21 2026 (04/21/2026, 17:56:35 UTC)
Source: CVE Database V5
Vendor/Project: DayuanJiang
Product: next-ai-draw-io

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/21/2026, 18:16:23 UTC

Technical Analysis

Next AI Draw.io, a next.js web app integrating AI with draw.io diagrams, had a resource exhaustion vulnerability (CWE-770) in its embedded HTTP sidecar prior to version 0.4.15. The POST endpoints /api/state, /api/restore, and /api/history-svg process incoming requests by accumulating the entire request body into JavaScript strings without any size limitation. This causes Node.js to buffer the entire payload in the V8 heap, which can be exhausted by sending sufficiently large payloads (around 500 MiB or more), resulting in an Out-of-Memory crash of the MCP server. The vulnerability is addressed in version 0.4.15.

Potential Impact

Exploitation of this vulnerability leads to denial of service by crashing the server process due to heap memory exhaustion. There is no impact on confidentiality or integrity, only availability is affected. No known exploits are reported in the wild.

Mitigation Recommendations

Upgrade next-ai-draw-io to version 0.4.15 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor's versioning information. No other mitigations are specified or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-14T14:07:59.642Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e7bb7219fe3cd2cdedac8d

Added to database: 4/21/2026, 6:01:22 PM

Last enriched: 4/21/2026, 6:16:23 PM

Last updated: 4/21/2026, 7:31:28 PM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses