Hono RegExpRouter skips wildcard middleware for some routes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-863.
Summary
Hono, a Web application framework for any JavaScript runtime, is affected from 4.1.4 before 4.13.16. RegExpRouter can omit wildcard middleware in three version-specific cases, including routes written as /api/:tenant/admin/:id and paths containing an encoded line terminator. An unauthenticated remote attacker can reach a route handler or the not-found handler without the authentication or authorization middleware registered on the wildcard path, which is CWE-863 (Incorrect Authorization).
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
Hono is a Web application framework that provides support for any JavaScript runtime. From 4.1.4 until 4.13.16, RegExpRouter can omit wildcard middleware in three version-specific cases: since 4.13.0, middleware using the explicit default parameter pattern in /api/:tenant{[^/]+}/admin/* is not applied to a route written as /api/:tenant/admin/:id; since 4.1.4, middleware on /admin/* is not applied to a route registered as /admin* for paths under /admin/; and since 4.4.0, a request path containing an encoded line terminator can reach the not-found handler without wildcard middleware. The default SmartRouter selects RegExpRouter for most applications, and the router's registration-time coverage calculation treated the first two matching pattern pairs as different while its compiled wildcard did not match line terminators in the third case. An unauthenticated client can reach a route handler or the not-found handler without authentication or authorization middleware registered on the wildcard path. TrieRouter, LinearRouter, and PatternRouter apply the middleware in the three described cases. This issue is fixed in version 4.13.16.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| honojs | hono | 4.1.4 to before 4.13.16 | 4.13.16 | Patch available | CNA |
| — | hono (npm) | 4.1.4 to before 4.13.16 | 4.13.16 | Patch available | GHSA-h7mg-cq63-vhpq |
- hono Vendorhonojs Affected 4.1.4 to before 4.13.16 Fixed in 4.13.16 Patch available CNA
- hono (npm) Vendor— Affected 4.1.4 to before 4.13.16 Fixed in 4.13.16 Patch available GHSA-h7mg-cq63-vhpq
Remediation
Upgrade hono to version 4.13.16. TrieRouter, LinearRouter, and PatternRouter apply the middleware in the three described cases, so they are not affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA hono (honojs) Fixed in 4.13.16
- Fix · GHSA-h7mg-cq63-vhpq hono (npm) Fixed in 4.13.16 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126358
- 2026-11-13 Alias added: GHSA-h7mg-cq63-vhpq
- 2026-11-13 Fix available: npm/[email protected] · GHSA-h7mg-cq63-vhpq
- 2026-11-13 CVSS score added · GHSA-h7mg-cq63-vhpq
- 2026-11-13 Weakness changed · GHSA-h7mg-cq63-vhpq
- 2026-11-13 4 new references · GHSA-h7mg-cq63-vhpq
- 2026-11-13 CISA SSVC decision points changed
References
More honojs vulnerabilities
- TI-2024-21741 Hono vulnerable to Restricted Directory Traversal in serveStatic with deno CVSS 3.1MEDIUM 5.3
- TI-2024-15441 @hono/node-server can't handle "double dots" in URL CVSS 3.1MEDIUM 5.3
- TI-2024-32610 Hono vulnerable to bypass of CSRF Middleware by a request without Content-Type header. CVSS 3.1MEDIUM 5.9
- TI-2024-29381 Hono CSRF middleware can be bypassed using crafted Content-Type header CVSS 3.1MEDIUM 5.0
- TI-2026-39189 Hono: Lambda@Edge adapter keeps only the last value of a repeated request header, dropping the rest CVSS 3.1MEDIUM 4.8
- TI-2026-23190 Hono: Arbitrary file access via serveStatic vulnerability CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-126358 · CVE Program
- CVE-2026-126358 · NVD
- FIRST EPSS
- GHSA-h7mg-cq63-vhpq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences