# CVE-2025-59139: Hono has Body Limit Middleware Bypass

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2025-09-12T13:03:05.777Z
- Modified: 2026-09-10T03:50:28.122Z
- Also known as: GHSA-92vj-g62v-jqhh
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- honojs hono: < 4.9.7
- hono (npm): before 4.9.7
- hono hono: before 4.9.7

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/honojs/hono/security/advisories/GHSA-92vj-g62v-jqhh> (vendor-advisory, web)
- <https://github.com/honojs/hono/commit/605c70560b52f13af10379f79b76717042fafe8d> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59139> (advisory)
- <https://github.com/honojs/hono> (package)

## Sources

- CVE List: [CVE-2025-59139](https://www.cve.org/CVERecord?id=CVE-2025-59139), CVE Terms of Use, modified 2025-09-12
- GitHub Advisory Database: [GHSA-92vj-g62v-jqhh](https://github.com/advisories/GHSA-92vj-g62v-jqhh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-59139](https://nvd.nist.gov/vuln/detail/CVE-2025-59139), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59139 · Whole record: https://cve.day/CVE-2025-59139.json · Rebuilt by cve.day 2026-11-25T22:59:04.599Z
