CVE-2026-47674: CWE-185: Incorrect Regular Expression in honojs hono
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.
AI Analysis
Technical Summary
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.
CVE-2026-47674: CWE-185: Incorrect Regular Expression in honojs 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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.