hono
4.13.19 · 16 Nov 2026MIT114.5M / weekRepositoryHomepagenpmAtom feed
Upgrading hono From 4.4.7 to 4.13.19
152 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking4.13.19
- Breaking4.12.3
- Breaking4.8.4
- Breaking4.6.15
- Breaking4.6.8
- Breaking4.5.2
- Breaking4.5.0
- Deprecated4.13.13
- Deprecated4.13.13
- Deprecated4.13.10
Security
Fixes 48 advisories affecting 4.4.7
- 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
- Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injectionlow · GHSA-3gg2-335m-rxc6
- Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injectionmoderate · GHSA-3hrh-pfw6-9m5x
- Hono JWK Auth Middleware has JWT algorithm confusion when JWK lacks "alg" (untrusted header.alg fallback)high · GHSA-3vhc-576x-3qv4
- hono Improperly Handles JSX Attribute Names Allows HTML Injection in hono/jsx SSRmoderate · GHSA-458j-xx4x-4375
- Hono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`)moderate · GHSA-46wx-v44x-9hh2
- Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefixmoderate · GHSA-4m76-xfj5-7975
- Hono Vulnerable to Cookie Attribute Injection via Unsanitized domain and path in setCookie()moderate · GHSA-5pq2-9x2x-5p6w
- hono/jsx has Unvalidated JSX Tag Names that May Allow HTML Injectionmoderate · GHSA-69xw-7hcm-h432
- Hono cache middleware ignores "Cache-Control: private" leading to Web Cache Deceptionmoderate · GHSA-6wqw-2p9w-4vw4
- hono: CORS Middleware reflects any Origin with credentials when `origin` defaults to the wildcardhigh · GHSA-88fw-hqm2-52qc
- Hono: ReDoS in CORS middleware via Access-Control-Request-Headersmoderate · GHSA-8j4g-w8fx-2239
- Hono has Body Limit Middleware Bypassmoderate · GHSA-92vj-g62v-jqhh
- Hono vulnerable to XSS through ErrorBoundary component moderate · GHSA-9r54-q6cx-xmh5
- Hono: bodyLimit() can be bypassed for chunked / unknown-length requestsmoderate · GHSA-9vqf-7f2p-gf9v
- Hono: Query parser reads parameters after the URL fragment, causing cache-key and proxy interpretation differentialsmoderate · GHSA-crvj-82cr-hjcx
- Hono: `memo()` retains SSR output across requests, leading to cross-user data disclosuremoderate · GHSA-f23p-vx2j-j53r
- Hono: JWT middleware accepts any Authorization scheme, not only Bearermoderate · GHSA-f577-qrjj-4474
- Hono JWT Middleware's JWT Algorithm Confusion via Unsafe Default (HS256) Allows Token Forgery and Auth Bypasshigh · GHSA-f67f-6cw9-8mq4
- Hono: Unbounded dot-notation nesting in `parseBody()` can cause memory exhaustionmoderate · GHSA-g6gw-c38x-mqfc
- Hono added timing comparison hardening in basicAuth and bearerAuthlow · GHSA-gq3j-xvxp-8hrf
- Hono: Incomplete fix for CVE-2026-39408: `toSSG()` still writes files outside the output directorymoderate · GHSA-gqvv-2mrq-wpjv
- Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminatormoderate · GHSA-h7mg-cq63-vhpq
- Hono has improper validation of NumericDate claims (exp, nbf, iat) in JWT verify()low · GHSA-hm8q-7f3q-5f36
- hono/jsx renders plain strings unescaped in boundary components, leading to XSSmoderate · GHSA-hxh3-vqpv-xpqv
- hono: AWS Lambda adapter merges multiple `Set-Cookie` headers into one value, dropping cookies on ALB single-header and Latticemoderate · GHSA-j6c9-x7qj-28xf
- Hono Improper Authorization vulnerabilityhigh · GHSA-m732-5p4w-x69g
- Hono Vulnerable to SSE Control Field Injection via CR/LF in writeSSE()moderate · GHSA-p6xx-57qc-3wxr
- Hono's Cache Middleware ignores Vary: Authorization / Vary: Cookie leading to cross-user cache leakagemoderate · GHSA-p77w-8qqv-26rm
- Hono vulnerable to arbitrary file access via serveStatic vulnerability high · GHSA-q5qw-h33p-qvwr
- Hono vulnerable to Vary Header Injection leading to potential CORS Bypassmoderate · GHSA-q7jf-gf43-6x6p
- Hono has CSS Declaration Injection via Style Object Values in JSX SSRmoderate · GHSA-qp7p-654g-cw7p
- Hono IPv4 address validation bypass in IP Restriction Middleware allows IP spoofingmoderate · GHSA-r354-f388-2fhh
- Hono: Non-breaking space prefix bypass in cookie name handling in getCookie()moderate · GHSA-r5rp-j6wh-rvv4
- Hono CSRF middleware can be bypassed using crafted Content-Type headerlow · GHSA-rpfr-3m35-5vx5
- hono: Body Limit Middleware can be bypassed on AWS Lambda by understating `Content-Length`moderate · GHSA-rv63-4mwf-qqc2
- Hono vulnerable to Prototype Pollution possible through __proto__ key allowed in parseBody({ dot: true })moderate · GHSA-v8w9-8mx6-g223
- Hono has an Arbitrary Key Read in Serve static Middleware (Cloudflare Workers Adapter)moderate · GHSA-w332-q679-j88p
- Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utilitymoderate · GHSA-w62v-xxxg-mg59
- hono: Lambda@Edge adapter keeps only the last value of a repeated request header, dropping the restmoderate · GHSA-wgpf-jwqj-8h8p
- Hono: Middleware bypass via repeated slashes in serveStaticmoderate · GHSA-wmmm-f939-6g9c
- hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)moderate · GHSA-wwfh-h76j-fc44
- Hono: Path traversal in toSSG() allows writing files outside the output directorymoderate · GHSA-xf4j-xp2r-rqqx
- Hono: API Gateway v1 adapter can drop a distinct repeated request header value during de-duplicationmoderate · GHSA-xgm2-5f3f-mvvc
- Hono has incorrect IP matching in ipRestriction() for IPv4-mapped IPv6 addressesmoderate · GHSA-xpcf-pg52-r92g
- Hono: IP Restriction bypasses static deny rules for non-canonical IPv6 moderate · GHSA-xrhx-7g5j-rcj5
- 4.13.18
This completes the fix for GHSA-4h7h-rv7c-7m2v.
- 4.13.18
GHSA-39q9-qp46-w8xg
- 4.13.18
GHSA-h25j-2p75-qj33
- 4.13.18
GHSA-74fm-fwc7-3fwp
- 4.13.16
GHSA-4m76-xfj5-7975
- 4.13.16
GHSA-h7mg-cq63-vhpq
- 4.13.16
GHSA-4h7h-rv7c-7m2v
- 4.13.16
GHSA-3gg2-335m-rxc6
- 4.13.16
Affects:
csrf()inhono/csrf. - 4.13.16
Users 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.
Release by release
- Breaking
proxy: Drop Transfer-Encoding and Keep-Alive from the headers option
- New
secure-headers: Add an overwrite option
- New
jwt: Add a typ option to verify the token header
- Fixed
jsx: Render an async component that returns null, a boolean, or a number
- Breaking
- Security
This completes the fix for GHSA-4h7h-rv7c-7m2v.
- Security
GHSA-39q9-qp46-w8xg
- Security
GHSA-h25j-2p75-qj33
- Security
GHSA-74fm-fwc7-3fwp
- Security
- Fixed
cookie: Match the
__Secure-and__Host-prefixes case-insensitively - Fixed
utils/url: Do not match a query key across separators
- Fixed
etag,pretty-json: Cancel the discarded response body
- Fixed
client: Detect the JSON media type with whitespace before a parameter
- Fixed
- Security
GHSA-4m76-xfj5-7975
- Security
GHSA-h7mg-cq63-vhpq
- Security
GHSA-4h7h-rv7c-7m2v
- Security
GHSA-3gg2-335m-rxc6
- Security
Affects:
csrf()inhono/csrf. - Security
Users 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. - Fixed
jwt: Reject a signature segment outside the base64url alphabet and a header with
crit
- Security
- Fixed
auth: Escape backslashes in the WWW-Authenticate realm
- Fixed
context: Allow
c.header()after the response body is consumed
- Fixed
- Deprecated
app.mount()still works in v4 but is deprecated and will be removed in v5. - Deprecated
mount: Introduce Mount Middleware and deprecate
app.mount - Fixed
jsx: Allow JSXNode function component results
- Deprecated
- Fixed
build: Keep internal types private in bundled d.ts and avoid a self-referencing JSX.IntrinsicElements
- Fixed
etag: Correctly match mixed-case header name in retainedHeader option
- Fixed
jsx: Add px to numeric gridGap, gridRowGap and gridColumnGap
- Fixed
combine: Return a Response from a short-circuiting middleware in some()
- Fixed
33 other lines we could not sort, mostly version bumps
- 4.10.6
noAuthenticationHeaderMessage=> usenoAuthenticationHeader.message - 4.10.6
invalidAuthenticationHeaderMessage=> useinvalidAuthenticationHeader.message - 4.10.6
invalidTokenMessage=> useinvalidToken.message - 4.8.0
Route Helper
- 4.8.0
JWT Custom Header Location
- 4.8.0
JSX Streaming Nonce Support
- 4.8.0
CORS Dynamic allowedMethods
- 4.8.0
JWK Allow Anonymous Access
- 4.8.0
Cache Status Codes Option
- 4.8.0
Service Worker
fire()Function
250 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.