Node server: Node.js Adapter for Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)
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.
CVSS v3.1
Score 5.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
On Windows hosts, the Node.js Adapter for Hono's serve-static middleware improperly handles encoded backslashes (%5C) in request paths. The encoded backslash decodes to a backslash character (\), which Windows treats as a path separator. This causes the middleware to misinterpret a single URL segment containing a backslash as a nested path, allowing an attacker to read static files protected by prefix-mounted middleware. The router splits paths only on '/', so middleware guarding paths like '/admin/*' does not execute for requests like '/admin%5Csecret.txt'. The vulnerability does not permit directory traversal outside the root directory as '.' and '..' are still blocked. This issue affects Windows hosts using Node, Bun, or Deno adapters serving static files with prefix-mounted middleware.
Potential Impact
An unauthenticated attacker can read static files located under middleware-guarded prefixes on Windows hosts running affected versions of the @hono/node-server. The attacker cannot escape the configured root directory but can access files that should be protected by middleware. This could lead to unauthorized disclosure of sensitive static files.
Mitigation Recommendations
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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-frvp-7c67-39w9
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a5fcf4b1010f89cc21532db
Added to database: 07/21/2026, 19:58:03 UTC
Last enriched: 09/15/2026, 06:23:09 UTC
Last updated: 10/04/2026, 02:52:39 UTC
Views: 274
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.