Skip to content
OpenAdvisories
High · 7.5 CVE-2026-29045 EUVD-2026-9506GHSA-q5qw-h33p-qvwr

Hono: Arbitrary file access via serveStatic vulnerability

Published Mar 4, 2026 · Updated Mar 5, 2026 · Assigned by GitHub_M

Description

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.12.4, when using serveStatic together with route-based middleware protections (e.g. app.use('/admin/*', ...)), inconsistent URL decoding allowed protected static resources to be accessed without authorization. The router used decodeURI, while serveStatic used decodeURIComponent. This mismatch allowed paths containing encoded slashes (%2F) to bypass middleware protections while still resolving to the intended filesystem path. This issue has been patched in version 4.12.4.

Affected products

VendorProductAffectedFixed
honojs hono < 4.12.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm hono < 4.12.4 4.12.4 GHSA-q5qw-h33p-qvwr

Advisories 1

References