CVE-2026-126358: Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminator
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-h7mg-cq63-vhpq
Summary
Hono's RegExpRouter incorrectly skips wildcard middleware in specific routing and path conditions, allowing requests to bypass authentication or authorization checks. Engineering and security teams using Hono with RegExpRouter or the default SmartRouter should update their packages.
Who is affected
Unauthenticated clients can reach route handlers or the not-found handler without triggering registered wildcard authentication or authorization middleware. This affects applications using RegExpRouter where specific wildcard patterns, routes with encoded line terminators, or certain parameter configurations are utilized.
Exploitability
The vulnerability is remotely exploitable over the network without requiring authentication or user interaction with a low attack complexity. It impacts confidentiality with a base score of 5.3 (Medium) under CVSS 3.1, though current empirical data shows a low exploitation probability (EPSS 0.003).
Remediation
- Upgrade npm package hono to version 4.13.16 or later.
- Alternatively, use a workaround by initializing Hono with TrieRouter: new Hono({ router: new TrieRouter() }).
How to check your project
- Check project dependencies in package.json or lockfiles for the npm package 'hono' within the affected version range introduced 4.1.4 and fixed in 4.13.16.
- Examine application configuration to determine if RegExpRouter or the default SmartRouter is used alongside wildcard middleware for security controls.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | hono |
>= 4.1.4, < 4.13.16 | 4.13.16 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | Low |
| Integrity | None |
| Availability | None |
FAQ
Which Hono routers are affected?
Only RegExpRouter (which is selected by default in SmartRouter for most applications) is affected. TrieRouter, LinearRouter, and PatternRouter are not affected.
What versions of Hono are vulnerable?
The vulnerability affects npm package hono introduced in version 4.1.4 and fixed in version 4.13.16.
Is this vulnerability actively exploited in the wild?
No, CISA Known Exploited Vulnerabilities tracking indicates no active exploitation.
Original advisory description
References
- WEB https://github.com/honojs/hono/security/advisories/GHSA-h7mg-cq63-vhpq
- WEB https://github.com/honojs/hono/commit/8a103aa59bcfbffd5396b1548a0dff3688777c36
- PACKAGE https://github.com/honojs/hono
- WEB https://github.com/honojs/hono/releases/tag/v4.13.16
Source records: GHSA-h7mg-cq63-vhpq (OSV.dev) · EPSS by FIRST, 2026-11-26.