CVE-2026-24473: Hono has an Arbitrary Key Read in Serve static Middleware (Cloudflare Workers Adapter)
Summary
Serve static Middleware for the Cloudflare Workers adapter contains an information disclosure vulnerability that may allow attackers to read arbitrary keys from the Workers environment. Improper validation of user-controlled paths can result in unintended access to internal asset keys.
Details
The vulnerability exists in the serve-static middleware used with the Cloudflare Workers adapter. When serving static assets, the middleware does not sufficiently validate or restrict user-supplied paths before resolving them against the Workers asset storage.
As a result, an attacker may craft requests that access arbitrary keys beyond the intended static asset scope. This issue only affects applications running on Cloudflare Workers that use Serve static Middleware with user-controllable request paths.
Impact
This vulnerability may lead to information disclosure by allowing unauthorized access to internal assets or data stored in the Workers environment. The exposed data is limited to readable asset keys and does not allow modification of stored data or execution of arbitrary code.
The impact is limited to applications that use Serve static Middleware in the Cloudflare Workers adapter and rely on it to safely handle untrusted request paths.
Affected Components
Serve static Middleware (Cloudflare Workers adapter)
Other sources
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.11.7, Serve static Middleware for the Cloudflare Workers adapter contains an information disclosure vulnerability that may allow attackers to read arbitrary keys from the Workers environment. Improper validation of user-controlled paths can result in unintended access to internal asset keys. Version 4.11.7 contains a patch for the issue.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-24473?
CVE-2026-24473 is classified as a medium severity vulnerability due to its potential for information disclosure.
How do I fix CVE-2026-24473?
To mitigate CVE-2026-24473, update the Hono package to version 4.11.7 or later.
What does CVE-2026-24473 affect?
CVE-2026-24473 affects the Serve static Middleware in the Cloudflare Workers adapter of the Hono package.
What type of vulnerability is CVE-2026-24473?
CVE-2026-24473 is an information disclosure vulnerability that allows reading arbitrary keys from the environment.
Is CVE-2026-24473 present in earlier versions of Hono?
Yes, CVE-2026-24473 exists in versions of Hono prior to 4.11.7.