hono
4.13.16 · 1 Nov 2026MIT102.4M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 4.x4.13.16Safe from 4.13.11Latest line
- 3.x and older3.12.12372 open advisories, worst high · last release Feb 2024, no longer updatedTo 4.13.16
Latest releases
All 413 releases4.13.16
1 Nov 2026jwt: Reject a signature segment outside the base64url alphabet and a header with
crit
Security fixes
This release includes fixes for the following security issues:
mount()andapp.mount()can forward a path that bypasses middleware scoped inside the mount prefixAffects:
mount()inhono/mountandapp.mount(). A dynamic prefix such as/api/:tenant/*was removed by the length of the route pattern. The forwarded path was also re-normalized by the URL parser, so a decoded\became/and..collapsed. Both let a crafted request skip middleware scoped inside the mount prefix. Routes such as/assets*and duplicate parameter names now throw. GHSA-4m76-xfj5-7975RegExpRouter skips wildcard middleware for certain route patterns and for paths with an encoded line terminator
Affects:
RegExpRouter, including the defaultSmartRouter. Wildcard middleware was not applied in three cases: a parameter written as{[^/]+}in the middleware path only, a/prefix*route next to/prefix/*middleware, and a path with an encoded line terminator. RegExpRouter now covers the same routes as the other routers. Custom patterns that can match the empty string, such as{[0-9]*}, throwUnsupportedPathError. RegeneratePreparedRegExpRouterdata. GHSA-h7mg-cq63-vhpqvalidator('form')skips validation formultipart/form-datarequests with extra parametersAffects:
validator('form')inhono/validator. Amultipart/form-datarequest with an extra parameter such ascharsetwas not recognized as a form. The validator then saw an empty object while the handler could read all fields. GHSA-4h7h-rv7c-7m2vcsshelper does not escape a closing tag assembled from template parts and values, allowing HTML injectionAffects:
cssinhono/css. A</style>split between the template and a value, or between two values, was not escaped. Closing tags are now escaped after minification. GHSA-3gg2-335m-rxc6csrf()does not check requests sent by hyperlink auditing (text/ping)Affects:
csrf()inhono/csrf. A POST sent by Chromium's<a ping>has the content typetext/pingand was not checked againstOriginandSec-Fetch-Site. GHSA-46wx-v44x-9hh2Users who rely on path-scoped middleware with
mount(), wildcard middleware with the default router,validator('form'), thecsshelper with untrusted values, orcsrf()are strongly encouraged to upgrade to this version.What's Changed
jwt: Reject a signature segment outside the base64url alphabet and a header with
crit
4.13.15
1 Nov 2026auth: Escape backslashes in the WWW-Authenticate realm
context: Allow
c.header()after the response body is consumed
What's Changed
auth: Escape backslashes in the WWW-Authenticate realm
context: Allow
c.header()after the response body is consumed
4.13.14
25 Oct 2026adapters: Accept Hono v5 prereleases in the
honopeer range #5537serve-static: Only serve GET and HEAD requests #5514
build: Keep barrel imports in the bundled
d.ts#5557
What's Changed
adapters: Accept Hono v5 prereleases in the
honopeer range #5537serve-static: Only serve GET and HEAD requests #5514
build: Keep barrel imports in the bundled
d.ts#5557jsx: Preserve self-closing void elements in cloneElement #5314
css: Keep "//" inside an unquoted url() when minifying #5450
css: Keep the descendant combinator before a pseudo-class when minifying #5451
serve-static: Respect q-values in Accept-Encoding for precompressed files #5436
helper/route: Match regex params in basePath() the same way as the router #5498
trie-router: Keep first value for duplicate path params #5423
hono-base: Disallow
getPathwhenstrictisfalse#5563css: Fix multiline CSS handling in style replacement #5405
bearer-auth: Allow MessageFunction to return a Response #5269
utils/url: Preserve encoded duplicate query order #5495
Dependency tracking · free for 3 projects
Know when your own dependencies move
hono had 44 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 5 Nov 2026. Releases and advisories last read 5 Nov 2026.