npm
CVE-2026-118663
@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths
- Severity
- Medium 5.3
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.1.3
- Exploit chance
- 0.4% in the next 30 daysHigher than 29% of CVEs. EPSS by FIRST, 24 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
- GHSA-rmxm-3fg6-px4f
- 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.
Affected software
| Software | Affected versions |
|---|---|
@hono/node-servernpm · osv:npm:@hono/node-server |
|
About @hono/node-server
- Weekly downloads (npm)
- 105,537,155npm, 22 Nov 2026
Vulnerabilities in @hono/node-server
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-126343@hono/node-server: Unhandled `ECONNRESET` on the socket during an asynchronous WebSocket upgrade crashes the processMedium 5.3 12 Nov 2026
- CVE-2026-126210@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxyMedium 5.3 12 Nov 2026
- GHSA-frvp-7c67-39w9Node.js Adapter for Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)Medium 5.9 21 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-118663
- GitHub Advisory Database https://github.com/advisories/GHSA-rmxm-3fg6-px4f