Hono CVE-2026-44456
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker sends HTTP request
-
DeliveryOmit Content-Length, use chunked encoding
-
ExploitSend oversized payload
-
ExecutionHandler executes before size check completes
-
PersistReturn HTTP 200 with response body
-
ImpactSize violation check runs after response sent
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) the target application uses Hono version < 4.12.16; (2) the bodyLimit() middleware is configured and active on the target route; (3) the HTTP request omits a usable Content-Length header and employs Transfer-Encoding: chunked or equivalent unknown-length encoding; (4) the handler does not read the entire request body, returns early, or catches and suppresses read errors; (5) the attacker can send HTTP requests to the Hono application (typically network-accessible web endpoint). No authentication is required. Default Hono configurations are vulnerable if bodyLimit() is explicitly enabled. Exploitation is easiest against handlers that skip body reading (static responses, early returns based on path/headers, or proxy endpoints that forward without reading). Handlers that fully consume the request body and properly propagate read errors are more resistant, though not immune if error handling chains are broken. |
| Impact | CVSS 6.5 (AV:N/AC:L/PR:N/UI:N) indicates network-exploitable vulnerability with low attack complexity and no authentication required, suggesting moderate severity with widespread attack surface. The vector accurately reflects unauthenticated remote attackability. However, real-world risk is nuanced: exploitation requires specific handler behavior (not reading body, early return, or error swallowing) that is common but not universal. The vulnerability causes information disclosure (partial body data reaches handlers) and potential denial of service (resource exhaustion via repeated large chunked uploads), but does NOT enable remote code execution or authentication bypass. EPSS scoring and KEV status are not provided in the input data. The threat is meaningful for applications relying on bodyLimit() as a hard security boundary for multipart uploads, file ingestion, or API rate limiting, but applications with downstream request size validation or strict handler timeout controls gain partial mitigation. The documented contract violation ("oversized requests rejected before business logic") matters more than the CVSS score suggests for compliance and threat modeling. |
| Exploit ScenarioDerived | An attacker crafts an HTTP request with Transfer-Encoding: chunked header and omits Content-Length. The attacker streams a payload larger than the configured maxSize limit, but sends data slowly or pauses mid-stream. A typical handler that does not read the request body (e.g., a health check endpoint, file upload handler that only reads headers, or endpoint that returns early based on authentication) executes immediately and returns HTTP 200 before the bodyLimit() middleware completes its asynchronous size check. The oversized payload reaches the handler's logic, potentially exposing internal routing, authentication logic, or other metadata. If the handler does read the body but wraps it in try/catch without re-throwing the error, the size violation is silently suppressed and the handler returns 200 with manipulated data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 07, 2026
Hono's bodyLimit() middleware fails to reliably enforce maxSize restrictions on chunked or unknown-length HTTP requests (Transfer-Encoding: chunked), allowing oversized payloads to reach application handlers and return HTTP 200 instead of 413 Payload Too Large. Versions prior to 4.12.16 are vulnerable when handlers do not fully read the request body, read only initial chunks before returning, or catch and suppress read errors. This bypasses the documented guarantee that oversized requests are rejected before business logic execution.
RemediationAI
Upgrade Hono to version 4.12.16 or later immediately. The fix relocates size enforcement to occur synchronously before next() invocation, eliminating the race condition. Apply the patch via npm update hono or equivalent package manager command. For applications unable to upgrade immediately, implement compensating controls: (1) add explicit request size validation in handler entry points before reading req.body; (2) configure upstream load balancers or reverse proxies (nginx, Apache, AWS ALB) to enforce request size limits at the network boundary before forwarding to Hono application; (3) disable chunked transfer encoding if business requirements permit (configure reverse proxy to buffer and add Content-Length header); (4) set aggressive socket timeouts to limit slow-read attacks. Each workaround has trade-offs: handler-level validation duplicates logic, proxy enforcement adds latency, disabling chunked encoding reduces streaming capability, and tight timeouts may affect legitimate slow clients. The GitHub security advisory at https://github.com/honojs/hono/security/advisories/GHSA-9vqf-7f2p-gf9v provides detailed patch context.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Hono is a lightweight web framework for JavaScript/TypeScript runtime environments. The bodyLimit() middleware is designed as a critical security gate to enforce request size constraints. The vulnerability stems from asynchronous stream byte-counting logic that processes chunked Transfer-Encoding requests. When Content-Length is unavailable (chunked transfer), bodyLimit() wraps the request body stream in a counting wrapper and invokes the next handler via next() before the size validation completes. The size violation is only checked afterward via c.error inspection, creating a race condition. The underlying issue is classified as CWE-400 (Uncontrolled Resource Consumption), where the resource (request body size) is not enforced at the boundary before handler execution. This affects all npm/hono package versions below 4.12.16.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Primary rating from Vendor (https://github.com/honojs/hono) · only source for this CVE.
CVSS VectorVendor: https://github.com/honojs/hono
DescriptionCVE.org
Summary
bodyLimit() does not reliably enforce maxSize for requests without a usable Content-Length (e.g. Transfer-Encoding: chunked). Oversized requests can reach handlers and return 200 instead of 413.
Details
For chunked / unknown-length requests, bodyLimit() wraps the body in a stream that counts bytes asynchronously, then runs the handler before the size decision is final. The 413 is only applied afterwards by checking c.error.
This lets the limit be bypassed when:
- the handler does not read the body,
- the handler reads only the first chunk(s) and returns, or
- the handler reads the body but swallows the read error in
try/catch.
In all three cases the handler returns 200 before the limit check completes (or its result is observed).
The fix is to enforce the size decision before next() runs, instead of retrofitting the response via c.error afterwards.
Impact
Applications relying on bodyLimit() as a hard boundary can be bypassed: oversized chunked requests can reach handler logic and return successful responses. Per-request data exposure is bounded by maxSize, but the documented guarantee - "oversized requests are rejected before business logic runs" - does not hold.
Credits
- @lalalala5678 (slow chunked / early return variants)
- @Jvr2022 (error handling bypass)
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-9vqf-7f2p-gf9v
NVD
CVE.org
EPSS
Exploit-DB