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.
Published: 2026-06-22
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Hono’s Body Limit Middleware determines the allowed payload size by trusting the client‑supplied Content‑Length header. On AWS Lambda (API Gateway v1/v2, ALB, VPC Lattice, and Lambda@Edge) the whole body is buffered by the platform and the request object is constructed with the declared Content‑Length, which may not correspond to the actual payload. An attacker can send a large body while declaring a small Content‑Length, allowing the request to pass the middleware’s size check and be processed by the application. This can exhaust Lambda memory or response resources, potentially resulting in a denial of service or other stability issues. The weakness is a form of unsafe validation, referenced as CWE‑345.

Affected Systems

The issue affects the Hono web framework (honojs:hono) versions earlier than 4.12.25 when deployed on any JavaScript runtime that executes in AWS Lambda, including those accessed through API Gateway v1/v2, Application Load Balancer, VPC Lattice, or Lambda@Edge.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity; the EPSS score is not available and the vulnerability is not currently listed in the CISA KEV catalog. Exploitation requires an attacker to send a crafted HTTP request to a Lambda function that uses Hono. Since the bug relies solely on manipulating request headers rather than exploiting code execution, an attacker can realistically perform the attack from virtually anywhere with network access to the API surface. The risk is therefore primarily the potential for overwhelming Lambda resources or causing service disruption.

Generated by OpenCVE AI on June 22, 2026 at 19:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Hono framework to version 4.12.25 or later, which contains the integrity check for the request body size.
  • If upgrading is not immediately possible, add an application‑level check that verifies the actual received body length against the declared Content‑Length before passing it to the framework or the business logic.
  • As a temporary measure, disable or replace the Body Limit Middleware with custom logic that performs byte‑counting of the incoming stream, thereby preventing trust of the header alone.

Generated by OpenCVE AI on June 22, 2026 at 19:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-rv63-4mwf-qqc2 hono: Body Limit Middleware can be bypassed on AWS Lambda by understating `Content-Length`
History

Mon, 22 Jun 2026 18:45:00 +0000

Type Values Removed Values Added
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.
Title Hono: Body Limit Middleware can be bypassed on AWS Lambda by understating `Content-Length`
Weaknesses CWE-345
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-22T17:18:24.532Z

Reserved: 2026-06-12T17:46:37.293Z

Link: CVE-2026-54288

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-22T19:30:06Z

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity