Input validation error in hono - #VU168007
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass request-body validation and pass unchecked JSON or form fields to the application handler.
The vulnerability exists due to improper input validation in Hono's validator() middleware when strict matching of the Content-Type header causes the validator to pass an empty object to the callback even though the handler can still parse the body. A remote attacker can submit JSON or form data with a Content-Type header that the validator and handler interpret differently to bypass field checks if the callback accepts an empty object.