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…
EPSS 0.2%top 84%

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

0
Medium
VulnerabilityCVE-2026-47674cvecve-2026-47674cwe-185cwe-1289
Published: 05/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

Affected software

honojs/hono
pkg:npm/honojs/hono
Affected versions
<4.12.21

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/04/2026, 20:22:14 UTC

Technical Analysis

CVE-2026-47674 is an incorrect regular expression and normalization issue (CWE-185) in the ip-restriction middleware of the honojs hono framework before version 4.12.21. The middleware attempts to enforce IP allow and deny rules by comparing incoming IP addresses to static rules using string equality after partial normalization. However, non-canonical IPv6 representations—such as compressed forms, explicit-zero forms, or hex-notation IPv4-mapped addresses—do not match the normalized rule entries, causing the middleware to skip the intended IP restriction silently. This can lead to unauthorized IP addresses bypassing access controls. The issue is resolved in hono version 4.12.21.

Potential Impact

The vulnerability allows an attacker to bypass IP-based access control restrictions by using non-canonical IPv6 address representations that are not correctly matched by the middleware. This results in the ip-restriction middleware silently skipping deny or allow rules, potentially permitting unauthorized access. There is no impact on confidentiality or availability reported, only integrity of access control is affected. No known exploits are reported in the wild.

Mitigation Recommendations

Upgrade the honojs hono framework to version 4.12.21 or later, where this vulnerability is fixed. Since the vendor advisory confirms the fix in 4.12.21, applying this official update fully mitigates the issue. No other mitigation steps are indicated.

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: 05/28/2026, 16:48:44 UTC

Last enriched: 06/04/2026, 20:22:14 UTC

Last updated: 07/31/2026, 19:22:59 UTC

Views: 70

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