6.5medium
Hono: Body Limit Middleware can be bypassed on AWS Lambda by understating `Content-Length`
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.10% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-rv63-4mwf-qqc2
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.25, the Body Limit Middleware trusts the request's Content-Length header to decide whether a body is within the limit. On AWS Lambda (API Gateway v1/v2, ALB, VPC Lattice, and Lambda@Edge) the body is delivered fully buffered and the adapter builds the request with the client-declared Content-Length, which need not match the actual payload. A client can declare a tiny Content-Length while sending a much larger body, slipping past the limit. This vulnerability is fixed in 4.12.25.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| honojs hono | < 4.12.25 | CVE List |
| hono (npm) | before 4.12.25 | GitHub Advisory Database |
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.25, the Body Limit Middleware trusts the request's Content-Length header to decide whether a body is within the limit. On AWS Lambda (API Gateway v1/v2, ALB, VPC Lattice, and Lambda@Edge) the body is delivered fully buffered and the adapter builds the request with the client-declared Content-Length, which need not match the actual payload. A client can declare a tiny Content-Length while sending a much larger body, slipping past the limit. This vulnerability is fixed in 4.12.25.
GitHub Advisory Database
Summary
The Body Limit Middleware trusts the request's Content-Length header to decide whether a body is within the limit. On AWS Lambda (API Gateway v1/v2, ALB, VPC Lattice, and Lambda@Edge) the body is delivered fully buffered and the adapter builds the request with the client-declared Content-Length, which need not match the actual payload. A client can declare a tiny Content-Length while sending a much larger body, slipping past the limit.
Details
When Content-Length is present and Transfer-Encoding is absent, the middleware compares the declared value against the limit and passes the request through if it is small enough. On standards-based runtimes the transport enforces that Content-Length matches the body, so this is safe. The Lambda adapters instead reconstruct the request from a buffered payload and copy the client's Content-Length verbatim, so the declared length and the real body size are decoupled.
This issue affects applications deployed on AWS Lambda that rely on the Body Limit Middleware to cap request body size.
Impact
The declared body-size limit can be bypassed: a handler reads a payload larger than the configured maximum. Processing the oversized payload (large JSON, multipart, etc.) consumes additional CPU and memory per request. The payload remains bounded by the platform's request size limits, and Lambda isolates invocations, so the impact is increased per-request resource usage rather than full denial of service. This affects applications deployed on AWS Lambda that use the Body Limit Middleware.
NVD (es)
Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Antes de la versión 4.12.25, el middleware Body Limit confía en el encabezado Content-Length de la solicitud para decidir si un cuerpo está dentro del límite. En AWS Lambda (API Gateway v1/v2, ALB, VPC Lattice y Lambda@Edge), el cuerpo se entrega completamente almacenado en búfer y el adaptador construye la solicitud con el Content-Length declarado por el cliente, que no tiene por qué coincidir con la carga útil real. Un cliente puede declarar un Content-Length minúsculo mientras envía un cuerpo mucho más grande, eludiendo el límite. Esta vulnerabilidad está corregida en la versión 4.12.25.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54288 changed 2026-06-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rv63-4mwf-qqc2 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-54288 changed 2026-10-25 | Public domain |