CVE-2026-126358

GHSA-h7mg-cq63-vhpq · published 12 Nov 2026 · updated 13 Nov 2026

Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminator

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in hono 4.13.16.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
honojs>=4.1.4 <4.13.16
npm: hono>=4.1.4 <4.13.16, >=4.1.4 <=4.13.154.13.16

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in hono (npm), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126358 severity on Zeptric[![CVE-2026-126358](https://zeptric.io/badge/cve/CVE-2026-126358.svg)](https://zeptric.io/cve/CVE-2026-126358)