Security
Hono: Security: This is release v4.13.16, a security-fix release
What changed
- This is release v4.13.16, a security-fix release.
- mount() and app.mount() can forward a path that skips middleware scoped inside the mount prefix.
- A dynamic prefix such as /api/:tenant/* was removed by the length of the route pattern.
- Routes such as /assets* and duplicate parameter names now throw; this is tracked as GHSA-4m76-xfj5-7975.
- RegExpRouter skipped wildcard middleware in three cases and now covers the same routes as the other routers (GHSA-h7mg-cq63-vhpq).
- Custom patterns that can match the empty string, such as {[0-9]*}, throw UnsupportedPathError.
- PreparedRegExpRouter data must be regenerated.
- validator('form') skipped validation for multipart/form-data requests with an extra parameter such as charset (GHSA-4h7h-rv7c-7m2v).
- The css helper did not escape a closing tag assembled from template parts and values, allowing HTML injection (GHSA-3gg2-335m-rxc6).
- Closing tags are now escaped after minification.
- csrf() does not check requests sent by hyperlink auditing with content type text/ping (GHSA-46wx-v44x-9hh2).
- A jwt fix rejects a signature segment outside the base64url alphabet and a header with crit in #5597.
Who it affects
- Users of mount() in hono/mount and app.mount().
- Users of RegExpRouter, including the default SmartRouter.
- Users of validator('form') in hono/validator.
- Users of css in hono/css.
- Users of csrf() in hono/csrf.
- Users who rely on path-scoped middleware with mount(), wildcard middleware with the default router, validator('form'), the css helper with untrusted values, or csrf() are encouraged to upgrade.
What to do now
- Upgrade to this version.
- Regenerate PreparedRegExpRouter data.
Your users need to hear about your changes too
FoxPlug writes the changelog entry, the heads-up email draft and the social posts from what you ship.
Try it on your projectYour changelog, written for you
FoxPlug writes your changelog from your releases and commits in plain English and publishes it as a page and a feed your users can follow. The page above shows what that looks like for a product people really use.
Write my changelog See the changelog FoxPlug wrote from its own commits
Free to start. Pro is a month.
FoxPlug Pro
- A public changelog page and feed for each project
- Written from your releases and commits, in plain English your users read
- Connect GitHub and new releases become new entries