{"id":"CVE-2026-54288","aliases":["CVE-2026-54288","GHSA-rv63-4mwf-qqc2"],"related":[],"kind":"vulnerability","state":"published","title":"Hono: Body Limit Middleware can be bypassed on AWS Lambda by understating `Content-Length`","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe 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.\n\n### Details\n\nWhen `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.\n\nThis issue affects applications deployed on AWS Lambda that rely on the Body Limit Middleware to cap request body size.\n\n### Impact\n\nThe 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-16T14:32:49.000Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-345"],"affected":[{"ranges":[{"version":"< 4.12.25","status":"affected"}],"vendor":"honojs","product":"hono","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.12.25"}],"ecosystem":"npm","package":"hono","purl":"pkg:npm/hono","source":"ghsa"}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-rv63-4mwf-qqc2","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54288","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/honojs/hono","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-23T14:16:43.807Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54288","url":"https://www.cve.org/CVERecord?id=CVE-2026-54288","licence":"CVE Terms of Use","modified":"2026-06-23T16:11:23.131Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rv63-4mwf-qqc2","url":"https://github.com/advisories/GHSA-rv63-4mwf-qqc2","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:50.504Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54288","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54288","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.404Z","epss":{"score":0.00103,"percentile":0.0107,"date":"2026-12-01T12:00:22.000Z"}}