Skip to main content

Hono CVE-2026-54288

| EUVDEUVD-2026-38331 MEDIUM
Insufficient Verification of Data Authenticity (CWE-345)
2026-06-16 https://github.com/honojs/hono GHSA-rv63-4mwf-qqc2
6.5
CVSS 3.1 · Vendor: https://github.com/honojs/hono
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP POST with understated Content-Length header
  2. Delivery
    Body Limit Middleware reads declared (small) value
  3. Exploit
    Middleware passes request without reading actual payload
  4. Execution
    Lambda adapter delivers full buffered body to handler
  5. Persist
    Handler processes oversized payload
  6. Impact
    Elevated CPU and memory consumed per Lambda invocation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the application must be deployed on AWS Lambda using one of the affected adapters - API Gateway v1/v2, ALB, VPC Lattice, or Lambda@Edge; (2) the application must use Hono's Body Limit Middleware as its mechanism for capping incoming payload size; (3) the hono package version must be below 4.12.25. Hono applications running on non-Lambda runtimes (Node.js HTTP, Deno, Bun, Cloudflare Workers) are not affected because those transports enforce Content-Length accuracy at the protocol layer. Authentication is not required - CVSS PR:N confirms any unauthenticated network client can send the crafted request. The payload size an attacker can deliver is capped by AWS Lambda's platform-level request size limits, preventing unbounded resource exhaustion. The attack is further limited in impact to elevated per-invocation resource consumption rather than persistent service disruption, as Lambda isolates each invocation.

Impact

The provided CVSS score of 6.5 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N reflects low attack complexity and no authentication requirement, both consistent with the description. However, two metrics warrant scrutiny. First, C:L (low confidentiality impact) is not corroborated by the advisory, which describes no data disclosure pathway - this appears to be a scoring artifact rather than a documented impact and should not be used to justify confidentiality-related risk decisions without vendor clarification. Second, A:N (no availability impact) conflicts directly with the advisory's own statement of 'increased per-request resource usage' and the 'Denial Of Service' tag assigned to this CVE, suggesting the availability dimension is understated. The vulnerability is not listed in CISA KEV and no public exploit code has been identified at time of analysis, so real-world exploitation risk is currently limited to opportunistic probing. The effective blast radius is further bounded by AWS Lambda's platform-level request size caps (6 MB synchronous, 10 MB asynchronous), preventing unbounded resource exhaustion. Risk is most significant for Lambda-hosted Hono applications that perform expensive downstream processing - database writes, ML inference, multipart parsing - triggered by body content, where a sustained flow of crafted oversized requests could inflate Lambda duration and memory billing meaningfully.

Exploit ScenarioDerived

An attacker targeting a Hono application on AWS Lambda sends an HTTP POST with the header Content-Length: 50 but a body containing several megabytes of JSON or multipart data. The Body Limit Middleware reads the declared 50-byte value, determines it is below the configured limit, and passes the request to the handler without inspecting the actual payload size. The handler reads and processes the full oversized body, increasing Lambda execution duration and memory usage, inflating AWS billing, and degrading throughput for concurrent legitimate requests - bounded by the Lambda platform's maximum request size. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 16, 2026

Body Limit Middleware bypass in Hono (npm/hono < 4.12.25) allows unauthenticated remote clients to send payloads exceeding the configured size limit when the application is deployed on AWS Lambda. By understating the Content-Length request header, attackers exploit the Lambda adapter's trust of client-declared header values to slip oversized bodies - large JSON, multipart uploads, etc. - past the middleware check, forcing handlers to process payloads larger than intended and inflating per-request CPU and memory consumption. No public exploit has been identified at time of analysis; the issue is fixed in hono 4.12.25.

RemediationAI

Upgrade the hono npm package to version 4.12.25 or later, which corrects the Body Limit Middleware to verify actual payload size rather than trusting the client-supplied Content-Length header; run npm install hono@4.12.25 or the equivalent for your package manager. The vendor-released patch is documented in GHSA-rv63-4mwf-qqc2 at https://github.com/honojs/hono/security/advisories/GHSA-rv63-4mwf-qqc2. If an immediate upgrade is not possible, a compensating control is to configure a WAF rule at the API Gateway or ALB layer that rejects or truncates requests whose actual content length exceeds the application's expected maximum before the request reaches Lambda; this shifts enforcement to the infrastructure layer but requires keeping the WAF limit synchronized with application changes. Alternatively, replace reliance on Body Limit Middleware with explicit body-reading and byte-counting inside the route handler, which operates on the actual buffered payload regardless of declared headers. Note that removing Body Limit Middleware without a replacement control eliminates the false protection while leaving handlers fully exposed to platform-maximum payloads.

Affected VersionsENISA

hono < 4.12.25

Affected Packages

npm hono fix: 4.12.25

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Hono is a lightweight TypeScript/JavaScript web framework targeting edge and serverless environments. Its Body Limit Middleware enforces a maximum payload size by inspecting the Content-Length header: when that header is present and Transfer-Encoding is absent, the middleware short-circuits based on the declared value without reading or measuring the actual body bytes. On standards-compliant runtimes - Node.js HTTP, Deno, Bun - the transport layer guarantees that Content-Length accurately reflects body size, so this check is safe. However, the AWS Lambda adapters for API Gateway v1/v2, ALB, VPC Lattice, and Lambda@Edge reconstruct the Request object from a fully buffered payload and copy the client-supplied Content-Length verbatim, decoupling the declared length from the real payload size. The root cause maps to CWE-345 (Insufficient Verification of Data Authenticity): the middleware trusts an externally-controlled header rather than measuring the actual payload it will process. Affected package is pkg:npm/hono, versions below 4.12.25.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/honojs/hono) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 6.5 MEDIUM

Network-exploitable with no auth required; no confidentiality impact per advisory; low integrity and low availability impact from payload size bypass and elevated resource use.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/honojs/hono).

CVSS VectorVendor: https://github.com/honojs/hono

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 58 npm packages depend on hono (42 direct, 16 indirect)

Ecosystem-wide dependent count for version 4.12.25.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy