6.5medium
Hono: bodyLimit() can be bypassed for chunked / unknown-length requests
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9vqf-7f2p-gf9v
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.16, bodyLimit() does not reliably enforce maxSize for requests without a usable Content-Length (e.g. Transfer-Encoding: chunked). Oversized requests can reach handlers and return 200 instead of 413. This vulnerability is fixed in 4.12.16.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| honojs hono | < 4.12.16 | CVE List |
| hono (npm) | before 4.12.16 | GitHub Advisory Database |
| hono hono | before 4.12.16 | NVD |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.16, bodyLimit() does not reliably enforce maxSize for requests without a usable Content-Length (e.g. Transfer-Encoding: chunked). Oversized requests can reach handlers and return 200 instead of 413. This vulnerability is fixed in 4.12.16.
GitHub Advisory Database
Summary
bodyLimit() does not reliably enforce maxSize for requests without a usable Content-Length (e.g. Transfer-Encoding: chunked). Oversized requests can reach handlers and return 200 instead of 413.
Details
For chunked / unknown-length requests, bodyLimit() wraps the body in a stream that counts bytes asynchronously, then runs the handler before the size decision is final. The 413 is only applied afterwards by checking c.error.
This lets the limit be bypassed when:
- the handler does not read the body,
- the handler reads only the first chunk(s) and returns, or
- the handler reads the body but swallows the read error in
try/catch.
In all three cases the handler returns 200 before the limit check completes (or its result is observed).
The fix is to enforce the size decision before next() runs, instead of retrofitting the response via c.error afterwards.
Impact
Applications relying on bodyLimit() as a hard boundary can be bypassed: oversized chunked requests can reach handler logic and return successful responses. Per-request data exposure is bounded by maxSize, but the documented guarantee — "oversized requests are rejected before business logic runs" — does not hold.
Credits
- @lalalala5678 (slow chunked / early return variants)
- @Jvr2022 (error handling bypass)
NVD (es)
Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Antes de la 4.12.16, bodyLimit() no aplica de forma fiable maxSize para solicitudes sin un Content-Length utilizable (p. ej., Transfer-Encoding: chunked). Las solicitudes sobredimensionadas pueden alcanzar los manejadores y devolver 200 en lugar de 413. Esta vulnerabilidad está corregida en la 4.12.16.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44456 changed 2026-05-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9vqf-7f2p-gf9v changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-44456 changed 2026-10-26 | Public domain |