PT-2026-31283 · Hono · Hono
Published
2026-04-08
·
Updated
2026-05-18
·
CVE-2026-39409
CVSS v4.0
6.3
Medium
| Vector | AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Hono versions prior to 4.12.12
Description
The
ipRestriction() function does not properly handle IPv4-mapped IPv6 client addresses (e.g., ::ffff:127.0.0.1) when applying IPv4 allow or deny rules. In dual-stack environments like Node.js, this can lead to IPv4 rules failing to match, resulting in incorrect authorization. The middleware classifies client addresses based on their textual form, treating IPv4-mapped IPv6 addresses as IPv6 and skipping IPv4 CIDR rules. This can allow denied IPv4 clients to bypass access restrictions or cause legitimate clients to be incorrectly rejected.Recommendations
Update to Hono version 4.12.12 or later.
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Hono