hono is vulnerable to Path Traversal
59
Medium Risk
The serve-static middleware rejects dot-segment and double-separator paths but allowed a lone backslash in the decoded filename. On Windows the path resolver treats backslash as a separator, so a single URL segment containing an encoded backslash can resolve into a nested protected file. An unauthenticated attacker can read static files behind prefix-mounted guards without escaping the configured root. The guard now rejects any decoded path containing a backslash separator.
You are affected if you are using a version that falls within the vulnerable range and you serve static files on Windows hosts using serve-static with prefix-mounted middleware guards.
hono is vulnerable to Path Traversal in versions 0.0.1 - 4.12.24.
Upgrade the hono library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant