VYPR
Medium severity6.5GHSA Advisory· Published Jun 16, 2026· Updated Jun 16, 2026

hono: Body Limit Middleware can be bypassed on AWS Lambda by understating `Content-Length`

CVE-2026-54288

Description

Body Limit Middleware on AWS Lambda can be bypassed by providing a false Content-Length header, allowing oversized payloads.

AI Insight

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

Body Limit Middleware on AWS Lambda can be bypassed by providing a false Content-Length header, allowing oversized payloads.

Vulnerability

The Body Limit Middleware in the Hono framework trusts the Content-Length header to decide whether a request body is within the configured limit. On AWS Lambda (API Gateway v1/v2, ALB, VPC Lattice, and Lambda@Edge), the adapter reconstructs the request from a fully buffered payload and copies the client-declared Content-Length verbatim, without verifying it matches the actual body size. This allows a client to declare a small Content-Length while sending a larger body, bypassing the middleware's check. This affects applications deployed on AWS Lambda that rely on this middleware. [1][2]

Exploitation

An attacker only needs network access to the Lambda endpoint. No authentication or special privileges are required. The attacker sends an HTTP request with a Content-Length header set to a value under the middleware limit, but includes a substantially larger body (e.g., large JSON or multipart payload). The middleware passes the request because it compares only the declared length, and the handler reads the full oversized body. [1][2]

Impact

A successful bypass allows the handler to process a payload larger than the configured maximum, consuming additional CPU and memory per request. The oversized 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 can lead to higher operational costs and potential performance degradation for the affected application. [1][2]

Mitigation

As of the publication date, no specific fix version has been announced. Users should monitor the official advisory for updates (see references). Recommended workarounds include implementing additional size validation at the application level or using a different middleware that properly checks actual body size on Lambda. [1][2]

AI Insight generated on Jun 16, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

2

News mentions

0

No linked articles in our index yet.