# CVE-2026-126358: Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminator

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.48% (percentile 33, 2026-11-28)
- **CWE:** CWE-863
- **Aliases:** GHSA-h7mg-cq63-vhpq
- **Published:** 2026-11-12T22:21:08.113Z
- **Modified:** 2026-11-13T23:17:16.387Z

## Who should check

- Projects that depend on npm package hono (\>= 4.1.4, \<= 4.13.15)
- Anyone running honojs hono \>= 4.1.4, \< 4.13.16

## Description

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 and fixed versions

- npm `hono`: affected \>= 4.1.4, \<= 4.13.15; fixed 4.13.16 (ghsa)
- honojs hono: \>= 4.1.4, \< 4.13.16 (cvelist)

## Technologies

npm packages

## Mitigation

- Upgrade hono to 4.13.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-126358. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-126358.md
Affected: hono >= 4.1.4, <= 4.13.15
Fixed in: 4.13.16

Steps:
1. Search this machine and project for hono (npm), honojs hono: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-126358 being exploited?

There is no confirmed exploitation: CVE-2026-126358 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-126358?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-126358?

hono \>= 4.1.4, \<= 4.13.15.

### Is there a fix for CVE-2026-126358?

Yes. Fixed in 4.13.16. Upgrade hono to 4.13.16 or later.

### How do I check if I'm affected by CVE-2026-126358?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/honojs/hono/security/advisories/GHSA-h7mg-cq63-vhpq>
- patch: <https://github.com/honojs/hono/commit/8a103aa59bcfbffd5396b1548a0dff3688777c36>
- other: <https://github.com/honojs/hono/releases/tag/v4.13.16>
- other: <https://github.com/advisories/GHSA-h7mg-cq63-vhpq>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-126358>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-h7mg-cq63-vhpq> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-126358> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-126358>
