VYPR
Medium severity5.3NVD Advisory· Published Sep 12, 2025· Updated Jun 17, 2026

CVE-2025-59139

CVE-2025-59139

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
hononpm
< 4.9.74.9.7

Affected products

4
  • Honojs/Hono2 versions
    cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*+ 1 more
    • cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*range: <4.9.7
    • (no CPE)range: < 4.9.7
  • osv-coords2 versions
    < 0+ 1 more
    • (no CPE)range: < 0
    • (no CPE)range: < 4.9.7

Patches

Vulnerability mechanics

References

4

News mentions

0

No linked articles in our index yet.