Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-111757 EUVD-2026-104537GHSA-5r4p-p66f-jhc7

Hono: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths

Published Oct 19, 2026 · Updated Oct 20, 2026 · Assigned by GitHub_M

Description

Hono is a Web application framework that provides support for any JavaScript runtime. From 4.12.4 until 4.13.11, serveStatic can interpret a malformed percent-encoded path differently from upstream routing middleware and bypass protection for a static prefix. The root cause is serveStatic decodes a routed request path a second time before filesystem lookup. The attack mechanism is malformed percent encoding survives the first routing interpretation and becomes a protected path only during the later static-file decode. The affected component is serveStatic. The trigger conditions are an application protects a static prefix with upstream middleware and serveStatic receives an attacker-controlled malformed percent-encoded path. The impact is unauthorized disclosure of a static file that upstream middleware was intended to protect. The issue does not permit traversal outside the configured static root. This issue is fixed in version 4.13.11.

Affected products

VendorProductAffectedFixed
honojs hono >= 4.12.4, < 4.13.11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 grafana12.4 12.4.13-0.1.hum1 RHSA-2026:85295
Red Hat Hardened Images 1 grafana13.1 13.1.7-0.2.hum1 RHSA-2026:84423
Red Hat Hardened Images 1 grafana13.2 13.2.4-0.1.hum1 RHSA-2026:85544

Advisories 3

References