hono is vulnerable to Authentication Bypass
53
CVE Score
Medium
Authentication Bypass
serveStatic decodes the routed request path a second time before resolving the file on disk. A request with a malformed percent encoded path segment matches the router while still partially encoded, then the second decode resolves to a different directory than the one the router matched. Middleware mounted on a static path prefix, including an authentication check, never runs for the file that actually gets served. The fix rejects routed paths containing a raw percent sign by default and adds an allowPercentInPath opt-in for the old behavior.
Upgrade the hono library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you mount middleware on a path prefix also served by serveStatic.
4.12.4 - 4.13.10
Fixed in 4.13.11hono is vulnerable to Authentication Bypass in versions 4.12.4 - 4.13.10.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.