Skip to content
Heist/ feed
Medium

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-111757

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-111757

hono

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "honojs",
    "product": "hono",
    "versions": [
      {
        "status": "affected",
        "version": ">= 4.12.4, < 4.13.11"
      }
    ]
  }
]
Related CVEs
CVE-2026-111757

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#42319 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement