GHSA-mhwf-w6q6-q58w: 
JavaScript Analyse et atténuation de la vulnérabilité

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

Connexe JavaScript Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-7hh4-7hx5-vxx8HIGH7.7
  • JavaScript logoJavaScript
  • mysql2
NonOuiNov 26, 2026
GHSA-656w-x92q-369mMEDIUM5.9
  • JavaScript logoJavaScript
  • hono
NonOuiNov 26, 2026
GHSA-mhwf-w6q6-q58wMEDIUM5.3
  • JavaScript logoJavaScript
  • hono
NonOuiNov 26, 2026
GHSA-586x-c76g-h528MEDIUM5.3
  • JavaScript logoJavaScript
  • hono
NonOuiNov 26, 2026
GHSA-2qxc-5xj9-7342LOW2.3
  • JavaScript logoJavaScript
  • @logtape/syslog
NonNonNov 26, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités