CVE-2026-24398 Hono's IPv4 address validation bypass in IP Restriction Middleware allows IP spoofing

Medium 4.8 Published Updated

Attackers can bypass IP-based access controls in Hono's middleware by crafting malformed IPv4 addresses, potentially gaining unauthorized access.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-24398?

CVE-2026-24398 is a medium-severity vulnerability in honojs hono, published on 27 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-185

Which versions are affected by CVE-2026-24398?

2 open source packages ship an affected version, including hono. It affects 1 product.

PackageAffectedFixed in
hono npmAll versions4.11.7
hono npmAll versions4.11.7

Products include Hono Hono.

How do I fix CVE-2026-24398?

Upgrade hono to 4.11.7 or later.

Is CVE-2026-24398 being exploited?

There is no known exploitation of CVE-2026-24398 in the wild and no public exploit code.

Sources

Also known as GHSA-r354-f388-2fhh, MINI-36v9-2vpp-9634, MINI-6x7x-4jhm-j5c5.

Is CVE-2026-24398 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free