Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.12, ipRestriction() does not canonicalize IPv4-mapped IPv6 client addresses (e.g. ::ffff:127.0.0.1) before applying IPv4 allow or deny rules. In environments such as Node.js dual-stack, this can cause IPv4 rules to fail to match, leading to unintended authorization behavior. This vulnerability is fixed in 4.12.12.
Problem types
CWE-180: Incorrect Behavior Order: Validate Before Canonicalize
Product status
References
github.com/...s/hono/security/advisories/GHSA-xpcf-pg52-r92g
github.com/...ommit/48fa2233bc092f650119f42df043050737cabf39
github.com/honojs/hono/releases/tag/v4.12.12