Vulnerability DatabaseGHSA-mhwf-w6q6-q58w

GHSA-mhwf-w6q6-q58w: 
JavaScript vulnerability analysis and mitigation

Summary

getPath() assumed that the URL of a request always has a scheme and a host. On Bun, the URL of a request without a usable Host header has only the path. For such a request, Hono dropped the first segment of the path before routing. As a result, a request could reach a route that a reverse proxy in front of the application blocks by path.

Details

Hono takes the path of a request from its URL string. The code looked for the start of the path after the scheme and the host, so it needed an absolute URL. Bun passes the request target as it is when it cannot build the host part. This happens for an HTTP/1.0 request without a Host header and for a request with an empty Host header. The URL then starts with the path, and Hono started the path at the second slash. Hono itself stays consistent, because the router and the middleware use the same value. The difference is between Hono and a component in front of it that saw the original path. This issue arises when the application runs on Bun, and a reverse proxy that restricts access by path passes a request without a usable Host header to it. Node.js with @hono/node-server, Deno, and Cloudflare Workers always give an absolute URL and are not affected.

Impact

An unauthenticated client may make Hono route a request with a different path from the one the reverse proxy checked. This may lead to:

  • Access to a route that the reverse proxy blocks by path This issue affects applications on Bun that rely on path rules of a reverse proxy to protect routes. Applications that protect routes with middleware inside Hono are not affected. The impact depends on the route that is reached.

Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qjc-mqvq-rch9HIGH7.6
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-j4pj-2xg4-35f6HIGH7.4
  • JavaScript logoJavaScript
  • @mikro-orm/mariadb
NoYesNov 27, 2026
GHSA-vrvp-5qx2-7xcmMEDIUM6.5
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-9phx-3fcw-32vfLOW3.7
  • JavaScript logoJavaScript
  • saxen
NoYesNov 27, 2026
GHSA-288x-p79m-78v5LOW3.7
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management