CVE-2025-59139: honojs hono · Uncontrolled Resource Consumption
Affects honojs honoSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 4.9.7 when convenient.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.9.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 12 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade honojs hono to 4.9.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| honojs hono | Affected
| Fixed in
|
AI-suggested
1. Immediate upgrade to Hono version 4.9.7 or later to ensure the `bodyLimit` middleware correctly handles conflicting HTTP headers in compliance with the HTTP specification. 2. Deploy or configure reverse proxies and web application firewalls (WAFs) to strictly enforce HTTP standards, rejecting requests with conflicting `Content-Length` and `Transfer-Encoding` headers. 3. Implement network-level rate limiting and request size restrictions to reduce the risk of resource exhaustion from large or malformed requests. 4. Monitor application logs and network traffic for anomalous patterns indicative of attempts to exploit this vulnerability, such as requests with conflicting headers or unusually large payloads. 5. Conduct security testing and code reviews to verify that other middleware or custom components do not exhibit similar header handling flaws. 6. Educate development and operations teams about the importance of adhering to HTTP specifications and promptly applying security patches. 7. For critical services, consider deploying runtime protections or resource quotas to limit the impact of potential DoS attacks even if malformed requests are processed.
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.