{"answers":{"affected":"1 open source package ship an affected version, including hono.","exploited":"There is no known exploitation of CVE-2026-126358 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls RegExpRouter. Many projects that include it are not exposed.","fix":"Upgrade hono to 4.13.16 or later.","what":"CVE-2026-126358 is a medium-severity authentication bypass vulnerability in honojs hono, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-126358 and fix it if it is affected.\n\nWhat it is: CVE-2026-126358 is a medium-severity authentication bypass vulnerability in honojs hono, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-126358 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls RegExpRouter. Many projects that include it are not exposed.\n\nAffected packages and fixed versions:\n- hono (npm): affected from 4.1.4; fixed in 4.13.16\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n   If an affected version is present, also search the code for calls to RegExpRouter and report whether any exist.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-126358/ (Markdown: https://insights.sbomify.com/CVE-2026-126358/index.md)","id":"CVE-2026-126358","markdown":"https://insights.sbomify.com/CVE-2026-126358/index.md","name":"CVE-2026-126358","record":{"aliases":["GHSA-h7mg-cq63-vhpq"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript web framework","requires_auth":"none","requires_specific_call":true,"summary":"Unauthenticated clients can reach route handlers or not-found handlers without wildcard middleware in Hono apps using RegExpRouter with certain patterns.","user_interaction":"not_required","vuln_class":"auth_bypass","vulnerable_functions":["RegExpRouter"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminator","id":"CVE-2026-126358","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":1,"n_references":3,"next":{"headline":"Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection","id":"CVE-2026-126359"},"nickname":null,"packages":[{"ecosystem":"npm","fixed":["4.13.16"],"introduced":["4.1.4"],"last_affected":[],"package":"hono","purl":null,"source":"GHSA-h7mg-cq63-vhpq"}],"prev":{"headline":"Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefix","id":"CVE-2026-126357"},"products":["hono"],"published":"2026-11-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-11-12","vendors":["honojs"]},"summary":"Unauthenticated clients can reach route handlers or not-found handlers without wildcard middleware in Hono apps using RegExpRouter with certain patterns.","url":"https://insights.sbomify.com/CVE-2026-126358/"}