CVE-2026-54288: Hono Body Limit Bypass on AWS Lambda
Hono is a popular JavaScript framework used to build web applications across different runtime environments. Versions before 4.12.25 contain a flaw in how they enforce request body size limits on AWS Lambda. An attacker can bypass the body size check by declaring a small content length in the HTTP header while actually sending a much larger payload. This allows oversized requests to reach the application, potentially causing denial of service or resource exhaustion. The issue has been patched in version 4.12.25.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Weaknesses (CWE)
- CWE-345
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-22 / 2026-06-23
NVD description (verbatim)
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.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The Body Limit Middleware in Hono relies on the Content-Length header to validate incoming request bodies against configured limits. On AWS Lambda platforms (API Gateway v1/v2, ALB, VPC Lattice, and Lambda@Edge), the request body is fully buffered before reaching the application. The Hono adapter constructs the request object using the client-supplied Content-Length header value without verifying it against the actual payload size. An attacker can craft a request with a falsified Content-Length header that declares a size well below the configured limit, while the HTTP body contains substantially more data. This mismatch allows the oversized body to bypass the middleware check. The vulnerability is classified as CWE-345 (Insufficient Verification of Data Authenticity).
Business impact
Organizations running Hono applications on AWS Lambda are at risk of denial of service attacks. An attacker could submit large payloads that bypass size restrictions, exhausting application memory, Lambda execution time, and potentially incurring unexpected AWS costs. In multi-tenant or SaaS deployments, this could degrade service quality for legitimate users. The impact is amplified in serverless environments where resource scaling and billing are tightly coupled.
Affected systems
Hono framework versions prior to 4.12.25 are vulnerable. The issue specifically affects deployments on AWS Lambda using API Gateway (v1 and v2), Application Load Balancer (ALB), VPC Lattice, or Lambda@Edge. Other JavaScript runtimes not exhibiting full body buffering behavior may not be affected in the same way, though the middleware logic remains problematic on any platform that trusts the Content-Length header.
Exploitability
The vulnerability requires no authentication or special privileges. An attacker needs only to send an HTTP request with a manipulated Content-Length header to an affected Hono endpoint, making exploitation straightforward. The attack is reliable because the underlying AWS Lambda infrastructure delivers the full body regardless of the declared header value. No user interaction is needed. The CVSS score of 6.5 reflects the moderate severity: while exploitability is trivial, the direct impact is limited to availability and potential information disclosure rather than code execution or authentication bypass.
Remediation
Upgrade Hono to version 4.12.25 or later. This patched version corrects the Body Limit Middleware to validate the actual body size rather than trusting the Content-Length header. Organizations should prioritize this update for all Hono applications running on AWS Lambda. Testing should confirm that body size limits are enforced correctly after the upgrade.
Patch guidance
Apply Hono version 4.12.25 or later. Verify the patch by checking your package lock file or running a dependency audit tool to ensure no intermediate dependencies are pulling in an older, vulnerable version. For teams using containerized Lambda deployments, rebuild images to include the patched version. For teams using Lambda layers, update the layer with the new Hono package. Testing should include requests with mismatched Content-Length headers to confirm they are now properly rejected or truncated according to policy.
Detection guidance
Monitor application logs for large request bodies that were accepted despite body size limit configurations. Watch for HTTP 413 (Payload Too Large) responses or application crashes related to memory exhaustion on Lambda functions. Examine CloudWatch metrics for unexplained CPU or memory spikes correlated with specific API endpoints. In WAF or reverse proxy logs, look for requests with unusually small Content-Length headers paired with large actual payload sizes. On the AWS side, check Lambda error rates, duration anomalies, and out-of-memory exceptions as indicators of active exploitation attempts.
Why prioritize this
Although the CVSS score is moderate (6.5), this vulnerability should be prioritized for Hono users on AWS Lambda because it directly attacks service availability in a high-impact environment. Serverless deployments are particularly vulnerable to resource exhaustion attacks due to auto-scaling costs and hard resource limits. The ease of exploitation—requiring only a single malformed HTTP request—and the likelihood of accidental or intentional triggering make this a practical risk. Organizations should plan patching within their next routine maintenance window, especially if their Lambda functions handle untrusted input.
Risk score, explained
The CVSS 3.1 score of 6.5 (Medium) accounts for: Network accessibility without authentication (AV:N, PR:N, UI:N), low attack complexity (AC:L), and impact limited to confidentiality and integrity rather than availability (C:L, I:L, A:N). However, the lack of an 'A:H' (high availability impact) in the vector may understate practical risk in serverless environments where resource exhaustion is a significant concern. Security teams should consider raising internal risk rating if their threat model emphasizes denial-of-service scenarios or if their Lambda functions are customer-facing.
Frequently asked questions
Does this affect Hono running outside of AWS Lambda?
The vulnerability is most severe on AWS Lambda because those platforms buffer the full request body before the application sees it, making the Content-Length mismatch exploitable. Other JavaScript runtimes that stream request bodies may not exhibit the same flaw, though the underlying middleware logic—trusting the header—remains problematic. We recommend patching regardless of runtime.
Can I work around this vulnerability without upgrading?
You can implement a custom middleware that re-validates request body size against the actual received bytes rather than the Content-Length header. However, upgrading to 4.12.25 is the proper fix and is strongly preferred over workarounds.
Will the patch break my application if I have legitimate use cases for body streaming or variable payloads?
The patched version still enforces the same body size limits; it simply validates them correctly against actual payload size. If your application legitimately needs to accept large bodies, you should increase the configured limit, not bypass it. No breaking changes to the API are expected.
Is this vulnerability being actively exploited?
There is no evidence of this vulnerability being actively exploited in the wild at this time. It was not added to CISA's KEV list, indicating no known public exploitation. However, the ease of exploitation means you should not rely on this as justification to delay patching.
This analysis is based on published vulnerability information as of June 2026. Patch availability and affected product versions should be verified against Hono's official security advisory and release notes. No exploit code or weaponized proof-of-concept is provided. Organizations should conduct their own risk assessment based on their specific deployment architecture and threat model. This is informational content and should not replace consultation with your security and development teams or vendors. AWS Lambda configurations, auto-scaling policies, and WAF rules vary widely; detection and mitigation strategies should be tailored to your environment. Source: NVD (public-domain), retrieved 2026-07-28. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-46538MEDIUMMicrosoft UFO Cross-Device Task Result Injection (CVSS 5.9)
- CVE-2026-46539MEDIUMNimiq BlockInclusionProof Logic Flaw Enables Forged Block Headers
- CVE-2026-47155MEDIUMvLLM Revision Pinning Supply-Chain Integrity Bypass (CVSS 6.5)
- CVE-2026-47696MEDIUMWWBN AVideo AuthorizeNet Payment Bypass—Wallet Fraud Vulnerability
- CVE-2026-48096MEDIUMOpenFGA Cache Collision Vulnerability: Impact, Patching & Detection
- CVE-2026-48783MEDIUMPostiz Unauthenticated Token Validation Flaw in /public/modify-subscription
- CVE-2026-53862MEDIUMOpenClaw Bootstrap Token Replay Vulnerability – Scope Escalation Risk
- CVE-2026-53899MEDIUMFirefox iOS Cookie Theft Vulnerability: Fix & Detection