{"cve":"CVE-2025-59139","nvd":{"published":"2025-09-12T14:15:41.940","modified":"2026-06-17T09:45:36.547","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-400","CWE-770"],"references":["https://github.com/honojs/hono/commit/605c70560b52f13af10379f79b76717042fafe8d","https://github.com/honojs/hono/security/advisories/GHSA-92vj-g62v-jqhh"],"products":["hono:hono"],"source":"nvd","synced_at":"2026-10-19T22:08:41.295252406+00:00"},"epss":{"cve":"CVE-2025-59139","score":0.00446,"percentile":0.38802,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-92vj-g62v-jqhh","url":"https://osv.dev/vulnerability/GHSA-92vj-g62v-jqhh","summary":"Hono has Body Limit Middleware Bypass","modified":"2026-09-10T03:50:28.122949815Z","packages":[{"ecosystem":"npm","name":"hono","purl":"pkg:npm/hono","ranges":["<4.9.7"],"fixed":["4.9.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}