Hono: IP Restriction bypasses static deny rules for non-canonical IPv6 (honojs hono)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.24 % Β· percentile 16 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.21, the ip-restriction middleware (hono/ip-restriction) compares incoming IP addresses against configured deny and allow rules using string equality after partial normalization. Non-canonical IPv6 representations of an address already listed in a static rule β such as compressed forms, explicit-zero forms, or hex-notation IPv4-mapped addresses β do not match the normalized rule entry, causing the rule to be silently skipped. This vulnerability is fixed in 4.12.21.
Weaknesses (CWE)
- CWE-185 β Incorrect Regular Expression
- CWE-1289 β Improper Validation of Unsafe Equivalence in Input
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-xrhx-7g5j-rcj5 β Hono: IP Restriction bypasses static deny rules for non-canonical IPv6
European references
- ENISA EUVD Β· EUVD-2026-32926
- GCVE Β· GCVE-0-2026-47674
Affected configurations (NVD CPE)
cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*< 4.12.21
Affected products
| Product | Versions |
|---|---|
| honojs Β· hono | affected < 4.12.21 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |