CVE-2025-59139 Details
Description
Hono is a Web application framework that provides support for any JavaScript runtime. In versions prior to 4.9.7, a flaw in the `bodyLimit` middleware could allow bypassing the configured request body size limit when conflicting HTTP headers were present. The middleware previously prioritized the `Content-Length` header even when a `Transfer-Encoding: chunked` header was also included. According to the HTTP specification, `Content-Length` must be ignored in such cases. This discrepancy could allow oversized request bodies to bypass the configured limit. Most standards-compliant runtimes and reverse proxies may reject such malformed requests with `400 Bad Request`, so the practical impact depends on the runtime and deployment environment. If body size limits are used as a safeguard against large or malicious requests, this flaw could allow attackers to send oversized request bodies. The primary risk is denial of service (DoS) due to excessive memory or CPU consumption when handling very large requests. The implementation has been updated to align with the HTTP specification, ensuring that `Transfer-Encoding` takes precedence over `Content-Length`. The issue is fixed in Hono v4.9.7, and all users should upgrade immediately.
A vulnerability exists in the Hono web application framework, specifically in versions through 4.9.6, within the 'bodyLimit' middleware. This flaw can lead to bypassing the set request body size limit when conflicting HTTP headers are present. The middleware previously gave priority to the 'Content-Length' header, even when 'Transfer-Encoding: chunked' was also included. According to HTTP specifications, 'Content-Length' should be disregarded in such scenarios. As a result, oversized request bodies could evade the configured limits. The actual impact of this vulnerability varies depending on the runtime and deployment environment, as most standards-compliant runtimes and reverse proxies would reject such malformed requests with a '400 Bad Request' response. However, if body size limits are relied upon to guard against large or malicious requests, this vulnerability could allow the sending of oversized request bodies, potentially leading to a denial-of-service condition by causing excessive memory or CPU usage when processing very large requests.
Users are advised to upgrade to Hono version 4.9.7, where this vulnerability has been fixed.
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 Sep 12, 2025References 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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| hono hono | < 4.9.7 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 17, 2025 | Initial Analysis | [email protected] |
| Sep 12, 2025 | New CVE Received | [email protected] |