Intel

AIKIDO-2026-901222

hono is vulnerable to Authentication Bypass

Authentication BypassGHSA-5r4p-p66f-jhc7 Published 2 days ago

53

Medium Risk

This Affects:

JShono
4.12.4 - 4.13.10
Fixed in 4.13.11
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

hono is vulnerable to Authentication Bypass in versions 4.12.4 - 4.13.10.

How to fix this

Upgrade the hono library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform