CVE-2026-137484 in Hono
Summary
by MITRE • 11/26/2026
Hono from 4.12.16 before 4.13.18 contains a memory exhaustion vulnerability in the bodyLimit() middleware that retains every transfer chunk as a separate array. Unauthenticated attackers can send a within-limit request body in one-byte chunks to create millions of retained objects, terminating Bun or Node.js processes.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/26/2026
The Hono web framework version 4.12.16 and earlier versions prior to the patched release 4.13.18 contains a critical memory exhaustion vulnerability within its bodyLimit middleware implementation. This flaw stems from an inefficient handling of HTTP request bodies that are constrained by size limits but transmitted in extremely small increments. Specifically, when the bodyLimit middleware processes incoming data streams, it retains every individual transfer chunk as a separate array element rather than aggregating or buffering them efficiently. This architectural decision creates a direct correlation between the number of network packets received and the amount of memory allocated for that specific request context.
From an operational perspective, this design flaw allows unauthenticated remote attackers to trigger a denial-of-service condition with minimal resource expenditure on their end. By sending a valid request body that stays within the configured size limit but is fragmented into one-byte chunks, an attacker can force the server to allocate millions of distinct array entries for a single connection. Each chunk consumes memory overhead associated with JavaScript object structures and array indexing in either Bun or Node.js runtime environments. As these objects accumulate without being garbage collected until the request completes, the process rapidly exhausts available heap space.
The impact of this vulnerability is severe, resulting in the termination of both Bun and Node.js processes due to out-of-memory errors. This effectively causes a complete service outage for any application relying on Hono as its web framework layer. Since the attack requires no authentication, it can be executed by any external actor capable of establishing an HTTP connection to the vulnerable endpoint. The resulting crash disrupts availability not only for the targeted request but potentially for other concurrent requests if shared memory resources are depleted or if the process restart causes transient instability in clustered environments.
This vulnerability is classified under CWE-400, which denotes Uncontrolled Resource Consumption, specifically manifesting as a resource exhaustion scenario where an attacker controls the rate of allocation relative to processing efficiency. In terms of offensive security frameworks, this aligns with MITRE ATT&CK technique T1498, Network Denial of Service, particularly sub-technique T1498.002 involving volumetric attacks that overwhelm system resources through inefficient handling rather than sheer bandwidth saturation. The attack vector is remote and low complexity, requiring only standard HTTP capabilities to exploit the logic flaw in the middleware chain.
To mitigate this vulnerability, organizations must upgrade their Hono dependencies immediately to version 4.13.18 or later, where the bodyLimit middleware has been refactored to handle chunked transfers more efficiently without retaining every individual byte as a separate object. Until patching is possible, defensive measures should include implementing rate limiting at the network perimeter to restrict the number of concurrent connections from single source IPs and configuring web application firewalls to detect anomalous patterns of small-chunk HTTP requests that deviate from normal client behavior. Additionally, monitoring for sudden spikes in memory usage correlated with specific endpoints can help identify active exploitation attempts before total service failure occurs.