Skip to content
OpenAdvisories
Medium · 4.8 CVE-2026-24398 EUVD-2026-4774GHSA-r354-f388-2fhh

Hono's IPv4 address validation bypass in IP Restriction Middleware allows IP spoofing

Published Jan 27, 2026 · Updated Jan 27, 2026 · Assigned by GitHub_M

Description

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.11.7, IP Restriction Middleware in Hono is vulnerable to an IP address validation bypass. The `IPV4_REGEX` pattern and `convertIPv4ToBinary` function in `src/utils/ipaddr.ts` do not properly validate that IPv4 octet values are within the valid range of 0-255, allowing attackers to craft malformed IP addresses that bypass IP-based access controls. Version 4.11.7 contains a patch for the issue.

Affected products

VendorProductAffectedFixed
honojs hono < 4.11.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-worker 3.153.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm hono < 4.11.7 4.11.7 GHSA-r354-f388-2fhh

Advisories 1

References