p PatchFirst

CVE-2026-24398

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 4.8 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • hono

    Versions
    • < 4.11.7: Affected

    No fix published

  • hono npm

    Affected ranges
    • SEMVER: < 4.11.7

    Update to 4.11.7

Original sources

Check your server →