Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › JavaScript

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

Medium · CVSS 5.3EPSS 0.5% First seen November 12, 2026

One of 5 npm:hono vulnerabilities published together by GitHub Advisory: our article covers all of them.

JavaScriptWebNetwork devicesVulnerabilities

Research article

Hono Router Flaw Allows Bypass of Middleware in Specific Routing Scenarios

CVECVE-2026-126358
Vendor and productnpm:hono; honojs hono
PublishedNovember 22, 2026 06:30 UTC
Research cut-offNovember 22, 2026 06:15 UTC
Sources reviewed4: NVD record (last modified 2026-11-13); CISA KEV catalog; GitHub advisory (2026-11-12); FIRST EPSS (2026-11-21)

Executive summary

CVE-2026-126358 affects the Hono JavaScript framework, enabling unauthenticated users to bypass middleware in particular routing cases. The CVSS 3.1 score is 5.3 MEDIUM, with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, scored by GitHub [3]. The vulnerability impacts versions of Hono from 4.1.4 to 4.13.15, with a fixed version at 4.13.16 [3]. The reviewed sources do not report exploitation [2]. The main action is to update to the fixed version.

Key points

  • CVE-2026-126358 affects Hono versions from 4.1.4 to 4.13.15 [3].
  • The vulnerability allows unauthenticated users to bypass middleware in specific routing scenarios [3].
  • The CVSS 3.1 score is 5.3 MEDIUM, with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, scored by GitHub [3].
  • The reviewed sources do not report exploitation [2].
  • The fixed version of Hono is 4.13.16 [3].

Vulnerability identification

CVE IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2026-126358HonoHonoCWE-8635.3 MEDIUM, scored by GitHub [3]2026-11-132026-11-13Deferred

Vulnerability description

This issue involves a routing problem in the RegExpRouter component of Hono, where wildcard middleware was not applied in certain situations. The problem arises when a route handler runs without the expected middleware, particularly in three distinct scenarios involving pattern matching [3]. The vulnerability allows unauthenticated users to bypass middleware for specific routes or access the not-found handler without proper checks [3].

Attack surface and exploitation prerequisites

The CVSS vector indicates the vulnerability has network access (AV:N), low access complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), and no impact on availability (A:N) [1]. The attack can be initiated remotely without authentication [3].

Impact analysis

The CVSS vector shows a low impact on confidentiality (C:L) and no impact on integrity (I:N) or availability (A:N) [1]. The flaw lets people without login credentials get past middleware on some routes, or reach the fallback handler for unmatched requests when no login or permission middleware is attached to a catch-all path [3].

Affected products and versions

AffectedFixed
hono >= 4.1.4, < 4.13.164.13.16 [3]

Exploitation and threat intelligence status

CVE-2026-126358 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-22 [2]. The EPSS score for this CVE is 0.0037 (0.37%), with a percentile of 0.3122, suggesting a low probability of exploitation within the next 30 days [4].

Detection and exposure assessment

Users can determine if they are exposed by checking if their installed version of Hono falls within the affected range: versions 4.1.4 through 4.13.15 [3]. No specific detection steps are provided by the sources [3].

Remediation

The fixed version of Hono is 4.13.16 [3]. A workaround is to use new Hono({ router: new TrieRouter() }) to avoid the issue [3].

Remediation checklist

  1. Update Hono to version 4.13.16 [3].
  2. Use `new Hono({ router: new TrieRouter() })` as a workaround if updating is not possible [3].
  3. Review routing configurations to ensure middleware is applied correctly.

Evidence gaps

  • The sources do not describe the internal workings of the affected component.
  • The sources do not mention a workaround beyond the one provided [3].
  • The sources do not detail the attack lifecycle or specific scenarios [3].
  • The sources do not provide indicators of compromise.
  • The sources do not list any mitigations beyond the workaround [3].

References

  1. CVE-2026-126358 record. NIST National Vulnerability Database (NVD), 2026-11-13. https://nvd.nist.gov/vuln/detail/CVE-2026-126358. Accessed 2026-11-22. CVE record with CVSS 3.1 score and affected versions [S1]
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-22. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-22. CISA KEV status indicating no exploitation [S2]
  3. GHSA-h7mg-cq63-vhpq / CVE-2026-126358 — Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminator. GitHub Security Advisory Database, 2026-11-12. https://github.com/advisories/GHSA-h7mg-cq63-vhpq. Accessed 2026-11-22. GitHub advisory with vulnerability description, affected versions, and workaround [S3]
  4. EPSS score for CVE-2026-126358. FIRST, 2026-11-21. https://api.first.org/data/v1/epss?cve=CVE-2026-126358. Accessed 2026-11-22. EPSS score and threat intelligence status [S4]

Written with AI assistance from the 4 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Severity breakdown

Medium · 5.3 CVSS 3.1 base score from the CNA (github.com)

An attacker without an account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Login needed
no
User action needed
no
Scope
stays within the vulnerable component
Impact
low on confidentiality, none on integrity and availability

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
hono (npm)≥ 4.1.4, ≤ 4.13.154.13.16
honojs hono>= 4.1.4, < 4.13.16—

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

Details

Summary

RegExpRouter, which the default SmartRouter selects for most applications, skipped wildcard middleware in three cases, so a route handler ran without the middleware registered for it:

  1. Middleware whose parameter is written with the explicit default pattern, such as /api/:tenant{[^/]+}/admin/*, was not applied to a route written as /api/:tenant/admin/:id. (since 4.13.0)
  2. Middleware on /admin/* was not applied to a route registered on /admin* for paths under /admin/. (since 4.1.4)
  3. For a path with an encoded line terminator (%0A, %0D, %E2%80%A8, %E2%80%A9), no wildcard pattern matched, so the request reached the not-found handler without any wildcard middleware. (since 4.4.0)

TrieRouter, LinearRouter and PatternRouter apply the middleware in all three cases.

Details

RegExpRouter decides at registration time which wildcard middleware covers which route. In cases 1 and 2 it treated patterns that match the same requests as different ones. In case 3 the compiled wildcard did not match line terminators.

The fix derives the coverage from the structure of the registered paths and lets wildcards match line terminators. It also corrects other differences from the other routers (a wildcard in the middle of a path with parameters, duplicate middleware, middleware on static routes), and rejects custom patterns that can match the empty string, such as {[0-9]*}, with UnsupportedPathError. PreparedRegExpRouter data must be regenerated.

Impact

An unauthenticated client can reach a route handler, or the not-found handler, without the authentication or authorization middleware registered on a wildcard path.

This affects applications that use RegExpRouter, directly or through the default SmartRouter, and rely on wildcard middleware for authentication or authorization.

Workarounds

Use new Hono({ router: new TrieRouter() }).

Source: GHSA-h7mg-cq63-vhpq / CVE-2026-126358, GitHub Advisory Database, licensed CC BY 4.0.

Affected

  • npm:hono
  • honojs hono

Frequently asked questions

What is CVE-2026-126358?

CVE-2026-126358 affects the Hono JavaScript framework, enabling unauthenticated users to bypass middleware in particular routing cases. The CVSS 3.1 score is 5.3 MEDIUM, with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, scored by GitHub. The vulnerability impacts versions of Hono from 4.1.4 to 4.13.15, with a fixed version at 4.13.16. The reviewed sources do not report exploitation. Weakness type: Incorrect Authorization (CWE-863).

How severe is CVE-2026-126358?

CVE-2026-126358 has a CVSS 3.1 base score of 5.3 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.

Is CVE-2026-126358 being exploited?

Not as far as is known: CVE-2026-126358 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-126358?

hono (npm) ≥ 4.1.4, ≤ 4.13.15 (fixed in 4.13.16); honojs hono >= 4.1.4, < 4.13.16.

How do I fix CVE-2026-126358?

Update Hono to version 4.13.16. Use new Hono({ router: new TrieRouter() }) as a workaround if updating is not possible. Review routing configurations to ensure middleware is applied correctly.

Timeline & sources

References

Related vulnerabilities & news