Hono 4.13.18
Hono 4.13.18 was released on November 11, 2026. This release is a security release: it resolves four vulnerabilities, three of which are new advisories and one of which completes an earlier fix. No new features, no deprecations.
Overview
All four issues affect middleware or adapters rather than the routing core. Two allow a request to reach a handler with less scrutiny than intended: validator() skipping validation, and serveStatic() serving a path that was decoded twice. One is a memory exhaustion vector in bodyLimit(). One is a path forwarding error in mount() that appeared in 4.13.16 and 4.13.17. Projects that rely on any of these should upgrade promptly.
Security Fixes
validator() skipped validation for oddly formatted Content-Type parameters
Advisory: GHSA-92p4-j3wq-jmqx. This completes the fix for GHSA-4h7h-rv7c-7m2v.
Affected: validator('json') and validator('form') from hono/validator. A Content-Type header with whitespace before the semicolon, a trailing semicolon, or an unusual parameter name was not recognized as a JSON or form content type. The validator then saw an empty object and skipped validation, while the handler could still read every field of the body. The validator now decides by media type alone, matching the behavior of c.req.parseBody().
bodyLimit() retained every transfer chunk of a request body
Advisory: GHSA-39q9-qp46-w8xg.
Affected: bodyLimit() from hono/body-limit. A body delivered in very small transfer chunks was retained as one object per chunk, so a request that stayed inside the configured size limit could still exhaust memory. The body is now buffered into a single array bounded by maxSize.
mount() forwarded the wrong path when a custom getPath adds a prefix
Advisory: GHSA-h25j-2p75-qj33.
Affected: mount() from hono/mount and app.mount(), in versions 4.13.16 and 4.13.17. When getPath prepends a prefix, such as the host name, one segment too many was stripped from the forwarded path. Middleware registered inside the mount prefix could therefore be skipped for the forwarded request. The prefix is now removed from the routed path again. Paths that would change meaning when forwarded return 400, and an optional regular expression parameter in a mount path throws.
serveStatic() served a doubly decoded path with allowPercentInPath
Advisory: GHSA-74fm-fwc7-3fwp.
Affected: serveStatic() from hono/serve-static and the runtime adapters, only when allowPercentInPath: true. A malformed percent escape in the request path was decoded a second time, so a path that middleware had registered against the encoded form could still reach a static file on disk. The file path must now match the routed path exactly; otherwise the response is 404.
Deprecations
None.
Fixes
The release contains no additional bug fixes beyond the four security items above. The diff against 4.13.17 is limited to the validator media type check, the body buffering rewrite, the mount prefix handling, and the static path comparison.
Upgrade
npm install [email protected]. If you run mount() with a custom getPath that prepends a prefix, verify that middleware inside the mount prefix still runs, and check any mount paths that contain optional regular expression parameters: those now throw at startup rather than resolving at request time. For serveStatic() with allowPercentInPath: true, confirm that requests with encoded characters still resolve as expected, since mismatches now return 404.
Full changelog: v4.13.17...v4.13.18.