hono
4.13.19 · 16 Nov 2026MIT114.5M / weekRepositoryHomepagenpmAtom feed
Upgrading hono From 3.11.7 to 3.12.12
18 releases in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 16
- new
- 34
- fixes
Before you upgrade
Tick each one off as you go- Deprecated3.12.0
Security
45 advisories still affect 3.12.12
- Hono allows bypass of CSRF Middleware by a request without Content-Type header.moderate · GHSA-2234-fmw7-43wr
- Hono missing validation of cookie name on write path in setCookie()moderate · GHSA-26pp-8wgv-hjvm
- Hono: app.mount() strips mount prefix using undecoded path, causing incorrect routing for percent-encoded pathsmoderate · GHSA-2gcr-mfcq-wcc3
Upgrading to 4.13.16 clears them.
- 3.12.0
This release introduces CSRF Protection Middleware.
- 3.12.0
CSRF Protection Middleware compares the
Originheader value with the request URL. - 3.12.0
middleware/csrf: Introduce CSRF middleware
Release by release
- Fixed
types:
MergeSchemaPathinfer inputs not only params
- Fixed
- Fixed
html: Remove circular dependencies in
hono/html - Fixed
types:
MergeSchemePathinfers param types correctly
- Fixed
- Fixed
trie-router: Fix same parameter name issue
- Fixed
- Fixed
Replace fs.existsSync() with Bun.file().exists()
- Fixed
types: Infer complex path params
- Fixed
jsx: Fix context provider with async component
- Fixed
- Fixed
factory: Correct types inside of
createMiddleware() - Fixed
Enable to return Response like object
- Fixed
- New
dev: Support
NO_COLOR - Fixed
hono-base: Fix not found handler calling timing when one middleware
- New
- New
Add Type to request for Lambda@Edge adapter to support S3 origin
- New
Add script for watch, remove tsc from test
- Fixed
types: Use middlewares with different env types
- Fixed
context: Fixed middleware +
c.json({}, requestInit)problem
- New
- Fixed
trie-router: Fixed same name path params matter
- Fixed
2 other lines we could not sort, mostly version bumps
- 3.12.6
Refactor middleware, tests
- 3.11.9
Use vitest for fastly compute testing
22 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.