← 一覧へ

Hono v4.13.18

github / Framework / Hono / 2026/11/11 18:01 JST

hono

要約

Hono v4.13.18 はセキュリティ修正を含むリリース。validator() が、Content-Typeパラメータの書式が通常と異なるリクエストに対して検証をスキップしてしまう問題を修正した。対象は hono/validator の validator('json') と validator('form') で、パラメータ前の空白などの書式差異を突かれると、検証を前提にした入力チェックが素通りする恐れがあった。バリデーションに依存するAPIでは実害につながり得るため、利用者は速やかな更新が推奨される。

HonoFramework 出典サイトのOGP画像 出典サイトで原文を開く →

出典サイトの説明: Security fixes This release includes fixes for the following security issues: validator() skips validation for requests whose Content-Type parameters are formatted differently Affects: validator('j...

Security fixes This release includes fixes for the following security issues: ### validator() skips validation for requests whose Content-Type parameters are formatted differently Affects: validator('json') and validator('form') in hono/validator. A Content-Type with whitespace before ;, a trailing ;, or an unusual parameter name was not recognized, so the validator saw an empty object while the handler could read all fields. This completes the fix for GHSA-4h7h-rv7c-7m2v. The validator now decides by the media type alone, as c.req.parseBody() does. GHSA-92p4-j3wq-jmqx

出典: 公式ページ

この記事をシェア