Hono v4.13.23:セキュリティ修正3件
原題: Hono v4.13.23
github / Framework / Hono / 2026/11/27 06:24 JST
要約
HonoFramework Hono v4.13.23はセキュリティ修正を含むリリースで、3件の問題を修正した。TrieRouterが `__proto__` をHTTPメソッド名として扱い、Object.prototypeへプロパティを追加してしまう問題(GHSA-656w-x92q-369m)。`except()` のパス条件で制約付きパラメータの選択肢に部分一致してしまい、ミドルウェアが誤ってスキップされる問題(GHSA-586x-c76g-h528)。さらにBun上でスキームとホストのないURLから `getPath()` が最初のパスセグメントを落としてしまう問題も修正された。HonoはCloudflare Workersをはじめとするエッジ環境で広く使われるフレームワークだけに、利用中のプロジェクトは速やかな更新が望ましい。
出典サイトで原文を開く → 出典サイトの説明: Security fixes This release includes fixes for the following security issues: TrieRouter treats __proto__ as a registered HTTP method Affects: applications that use TrieRouter and accept arbitrary ...
Security fixes This release includes fixes for the following security issues: ### TrieRouter treats __proto__ as a registered HTTP method Affects: applications that use TrieRouter and accept arbitrary method names, for example with HTTP/2 on Node.js or with hono/method-override. A request with a method name such as __proto__ made the router add a property to Object.prototype, so later requests in the same process could fail until it was restarted. The router no longer treats an inherited property as a registered method. GHSA-656w-x92q-369m ### except() skips a middleware for a path that only starts or ends with an alternative of a constrained parameter Affects: except() in hono/combine, with a path condition that has an alternation in a constrained parameter. A path that only started or ended with one of the alternatives also matched the condition, so the middleware did not run for it. The regular expression of a parameter is now grouped, and routes on TrieRouter with such a parameter are corrected by the same change. GHSA-586x-c76g-h528 ### getPath() drops the first path segment when the request URL has no scheme and host Affects: applications on Bun that rely o
出典: 公式ページ