Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-47674: CWE-185: Incorrect Regular Expression in honojs hono

0
Medium
VulnerabilityCVE-2026-47674cvecve-2026-47674cwe-185cwe-1289
Published: Thu May 28 2026 (05/28/2026, 15:29:08 UTC)
Source: CVE Database V5
Vendor/Project: honojs
Product: hono

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.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/28/2026, 17:04:39 UTC

Technical Analysis

The honojs hono framework's ip-restriction middleware prior to version 4.12.21 performs IP address comparisons using string equality after partial normalization. This approach fails to correctly handle non-canonical IPv6 address representations such as compressed forms, explicit-zero forms, or hex-notation IPv4-mapped addresses. As a result, IP addresses that should be matched by static deny or allow rules may be bypassed because their non-canonical forms do not match the normalized rule entries. This vulnerability is identified as CWE-185 (Incorrect Regular Expression) and CWE-1289, and is addressed by updating to version 4.12.21.

Potential Impact

The vulnerability allows an attacker to bypass IP-based access control rules configured in the ip-restriction middleware by using non-canonical IPv6 address representations. This can lead to unauthorized access if IP restrictions are relied upon for security. The CVSS score of 5.3 (medium severity) reflects the network attack vector, low complexity, no privileges required, no user interaction, and impact limited to integrity (bypassing restrictions) without confidentiality or availability impact.

Mitigation Recommendations

A fix is available in honojs hono version 4.12.21. Users should upgrade to this version or later to ensure correct normalization and matching of IP addresses in the ip-restriction middleware. No other mitigation is indicated by the vendor advisory or data provided.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-19T21:10:38.798Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a1871ece29bf47b5012459d

Added to database: 5/28/2026, 4:48:44 PM

Last enriched: 5/28/2026, 5:04:39 PM

Last updated: 5/29/2026, 10:34:24 AM

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses