# 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:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-11-12T22:21:08.113Z
- Modified: 2026-11-13T23:17:16.387Z
- Also known as: GHSA-h7mg-cq63-vhpq
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- honojs hono: >= 4.1.4, < 4.13.16
- hono (npm): from 4.1.4 before 4.13.16

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/honojs/hono/security/advisories/GHSA-h7mg-cq63-vhpq> (web)
- <https://github.com/honojs/hono/commit/8a103aa59bcfbffd5396b1548a0dff3688777c36> (web)
- <https://github.com/honojs/hono/releases/tag/v4.13.16> (web)
- <https://github.com/honojs/hono> (package)

## Sources

- CVE List: [CVE-2026-126358](https://www.cve.org/CVERecord?id=CVE-2026-126358), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-h7mg-cq63-vhpq](https://github.com/advisories/GHSA-h7mg-cq63-vhpq), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126358](https://nvd.nist.gov/vuln/detail/CVE-2026-126358), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126358 · Whole record: https://cve.day/CVE-2026-126358.json · Rebuilt by cve.day 2026-11-25T22:59:50.577Z
