@hono/node-server · Node server: Node.js Adapter for Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)
Affects @hono/node-serverSource GCVE Database
CVSS 5.9 Medium : upgrade to 2.0.5 when convenient.
Data as of 15 Sep 2026, 06:23 UTC
- Patch
- Available – fixed in 2.0.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NWhat to do
Upgrade @hono/node-server to 2.0.5.
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.
AI-suggested
A patch is available for this vulnerability. Users should upgrade to version 2.0.5 or later (and 1.19.15 or later if applicable) of the @hono/node-server package to remediate this issue. No additional mitigation steps are required if the patch is applied.
Description
A path traversal vulnerability exists in the Node.js Adapter for Hono's serve-static middleware on Windows. An attacker can use an encoded backslash (%5C) in the URL path to bypass prefix-mounted middleware protections and read static files within the configured root directory. The vulnerability does not allow escaping outside the root directory and affects Windows hosts only. It impacts versions prior to 2.0.5 and 1.19.15 of the @hono/node-server package. The vulnerability has a medium severity with a CVSS score of 5.9.
References
- github.com/honojs/node-server/security/advisories/GHSA-frvp-7c67-39w9 (opens in a new tab)
- github.com/honojs/node-server/commit/cd076e117cfe4cb8d31f9eb11d2e8f38a6cb8faf (opens in a new tab)
- github.com/honojs/node-server (opens in a new tab)
- github.com/honojs/node-server/releases/tag/v2.0.5 (opens in a new tab)