All vulnerabilities

npm

CVE-2026-109955

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

Severity
Medium 5.3
Published
20 Oct 2026
Last changed
20 Oct 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.13.11
Exploit chance
0.3% in the next 30 daysHigher than 24% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-174
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Also known as
CVE-2026-111757, GHSA-5r4p-p66f-jhc7
Sources
OSV.dev and GitHub

Description

serveStatic decodes the request path a second time after Hono has already decoded it for routing. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix.

Hono decodes the request path once before routing. serveStatic decoded it again before resolving the file. With a malformed percent-encoded sequence, the first decode leaves part of the path encoded, the router matches the encoded form, and the second decode resolves the real directory. The file is still resolved inside the configured root; this is not a traversal outside it.

An unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that mount middleware on part of the directory served by serveStatic. Applications that serve only public files are not affected.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
hononpm · osv:npm:hono
  • From 4.12.4 before 4.13.11

About hono

Weekly downloads (npm)
108,805,821npm, 16 Nov 2026

References