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.
Published: 2026-05-28
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in the ip-restriction middleware of Hono, where incoming IP addresses are compared to deny and allow rules using string equality after only partial normalization. Because non‑canonical IPv6 formats—such as compressed forms, explicit‑zero forms, or IPv4‑mapped hex notation—do not match the stored rule entries, the rule evaluation is silently skipped. This flaw effectively permits traffic from seemingly blocked addresses to bypass the framework’s IP filtering, exposing the application to unauthorized HTTP requests that would normally be denied.

Affected Systems

The flaw affects the Hono web‑application framework (honojs:hono) version 4.12.21 and earlier; deployments that have not applied the fix in version 4.12.21 or later are vulnerable. The issue is tied to the ip‑restriction middleware provided by hono/ip‑restriction.

Risk and Exploitability

The CVSS score of 5.3 reflects a moderate impact; the vulnerability is a server‑side input validation error that allows bypassing IP restrictions. No EPSS score is currently available, and the issue is not listed in the CISA KEV catalog, indicating that exploitation has not been observed on a large scale yet. Adversaries can exploit it by sending requests with non‑canonical IPv6 addresses to the Hono application endpoints, assuming the target environment does not enforce external firewall rules that block or sanitize IPv6 traffic.

Generated by OpenCVE AI on May 28, 2026 at 19:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Hono version 4.12.21 or later, which includes the fixed ip‑restriction logic.
  • Remove or disable the ip‑restriction middleware entirely if upgrading is not immediately possible, and implement an equivalent access control check that normalizes and validates IP addresses properly.
  • Configure external network firewalls or proxy layers to reject non‑canonical IPv6 addresses or to only allow canonical forms, adding an extra layer of protection.

Generated by OpenCVE AI on May 28, 2026 at 19:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 29 May 2026 17:00:00 +0000

Type Values Removed Values Added
First Time appeared Hono
Hono hono
CPEs cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*
Vendors & Products Hono
Hono hono

Thu, 28 May 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title Hono: IP Restriction bypasses static deny rules for non-canonical IPv6
Weaknesses CWE-1289
CWE-185
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-28T15:29:08.525Z

Reserved: 2026-05-19T21:10:38.798Z

Link: CVE-2026-47674

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-28T17:16:32.383

Modified: 2026-05-29T16:57:58.913

Link: CVE-2026-47674

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T19:30:16Z

Weaknesses