Incorrect authorization in hono - #VU170750
Published: November 27, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass authorization middleware and potentially read data from protected routes.
The vulnerability exists due to improper regular expression anchoring in Hono's TrieRouter when it matches constrained path parameters whose alternatives are not grouped. A remote attacker can send requests with paths that the router incorrectly matches, causing except() to skip middleware on a broader route or causing a route registered directly with TrieRouter to accept an unintended path.