CVE-2025-59139
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-59139 affects Hono, a Web application framework that provides support for any JavaScript runtime. The vulnerability was discovered in versions prior to 4.9.7, where a flaw in the bodyLimit middleware could allow bypassing the configured request body size limit when conflicting HTTP headers were present. The issue was disclosed on September 12, 2025, and primarily affects the body size limit validation mechanism (GitHub Advisory).

Technical details

The vulnerability stems from incorrect header precedence handling in the bodyLimit middleware. The middleware previously prioritized the Content-Length header even when a Transfer-Encoding: chunked header was also included, contrary to HTTP specification requirements. According to RFC 7230, when both headers are present, Transfer-Encoding should take precedence and Content-Length must be ignored. This implementation flaw could allow oversized request bodies to bypass the configured limit. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (GitHub Advisory).

Impact

The primary impact of this vulnerability is the potential for denial of service (DoS) attacks. If body size limits are used as a safeguard against large or malicious requests, attackers could exploit this flaw to send oversized request bodies, leading to excessive memory or CPU consumption when handling very large requests. However, 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 (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Hono version 4.9.7. The implementation has been updated to align with the HTTP specification, ensuring that Transfer-Encoding takes precedence over Content-Length when both headers are present. All users are advised to upgrade to version 4.9.7 or later immediately (GitHub Advisory, GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-22028HIGH7.2
  • JavaScriptJavaScript
  • preact
NoYesJan 07, 2026
CVE-2025-9611HIGH7.2
  • JavaScriptJavaScript
  • @playwright/mcp
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management