@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static
Affects @hono/node-serverSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 2.1.3 when convenient.
Data as of 28 Oct 2026, 22:12 UTC
- Patch
- Available – fixed in 2.1.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade @hono/node-server to 2.1.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@hono/node-server | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
### Summary `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. ### Details 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. ### Impact 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.
References
- github.com/honojs/node-server/security/advisories/GHSA-rmxm-3fg6-px4f (opens in a new tab)
- github.com/honojs/node-server/commit/982179278529d5673812116b042829f27794966f (opens in a new tab)
- github.com/honojs/node-server (opens in a new tab)
- github.com/honojs/node-server/releases/tag/v2.1.3 (opens in a new tab)