Vulnerability
CVE-2026-118663
@hono/node-server allows running the Hono application on Node.js. From 1.19.10 until 2.1.3, serveStatic decodes a request path a second time after Hono has already decoded it for routing, so a malformed percent-encoded sequence can make route middleware evaluate an encoded path while static file resolution uses a different directory. An unauthenticated attacker can bypass middleware mounted on a protected static prefix and read a file inside the configured static root, although the flaw does not permit traversal outside that root. This issue is fixed in version 2.1.3.
35 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-2p6f-956j-2c6p
- CGA-2v3v-fpff-fmm2
- CGA-383v-qmjv-fjh9
- CGA-3g2x-qvpm-9grv
- CGA-3mrr-q7ch-fwxw
- CGA-4mjr-m99r-8f2c
- CGA-6xvq-jvqj-5j3h
- CGA-7gfw-4vmf-f46q
- CGA-7hcr-235j-m9vv
- CGA-8p4m-48f2-4h7g
- CGA-8rvw-7mvq-c69j
- CGA-93pf-r7g8-mm7c
- CGA-9q39-7v7m-p3fw
- CGA-cff4-r77q-p4r7
- CGA-cgv6-vhhv-8r2g
- CGA-gf82-5hfg-cqw8
- CGA-gfmp-pwmp-q576
- CGA-gmqp-3pmj-8jh7
- CGA-gxg9-f27v-x32r
- CGA-j5gg-v2wx-qcqh
- CGA-jpv2-5xfw-9cr9
- CGA-pcr6-x5hp-9pqf
- CGA-pr37-w53w-fjj6
- CGA-qh29-7j7q-wxvg
- CGA-qv84-5qxw-94h7
- CGA-rv4m-r7jh-pxg6
- CGA-vq3p-qwvj-c4q2
- CGA-vv38-85fh-4vgj
- CGA-vx32-v7j4-cg4h
- CGA-w2v7-rf69-7569
- CGA-whq4-76mq-cfvj
- CGA-wq2w-4g2c-g5xx
- CGA-x3c4-4hmv-f936
- CGA-xcff-96x7-w67f
-
GHSA-rmxm-3fg6-px4f
@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths