---
id: CVE-2026-47674
title: >-
  Hono is a Web application framework that provides support for any JavaScript
  runtime
summary: >-
  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
  stri…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-185
  - CWE-1289
vendor: hono
product: hono
affected:
  - hono < 4.12.21
patched:
  - hono 4.12.21
published: '2026-05-28'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T20:10:00.190'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-47674'
references:
  - url: 'https://github.com/honojs/hono/security/advisories/GHSA-xrhx-7g5j-rcj5'
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.0031
epssPercentile: 0.22228
ingestedAt: '2026-10-14T20:53:12.340Z'
---

## Overview

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.

## Affected

- `hono < 4.12.21`

## Remediation

Upgrade past the affected range:

- `hono 4.12.21`
