Skip to content

chore(deps): update hono - #106

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/hono
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/hono

Conversation

@renovate

@renovate renovate Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@hono/node-server 2.1.6 → 2.1.8 age adoption passing confidence
hono (source) 4.13.16 → 4.13.18 age adoption passing confidence

Release Notes

honojs/node-server (@​hono/node-server)

v2.1.8

Compare Source

What's Changed

  • fix(request): forward duplex to the native request in #​409
  • fix(utils): do not chain a promise per chunk while streaming a response in #​417
  • fix(listener): cancel the response body when the client has already disconnected in #​412
  • fix(utils): cancel late HTTP/2 response bodies in #​419
  • fix(listener): do not send a complete response when the body fails during the early read in #​420

Full Changelog: honojs/node-server@v2.1.7...v2.1.8

v2.1.7

Compare Source

Security fixes

This release includes a fix for the following security issue:

serveStatic with allowPercentInPath still allows the double-decode middleware bypass

Affects: serveStatic with allowPercentInPath: true. The fix for GHSA-rmxm-3fg6-px4f rejects a path containing %, but the allowPercentInPath option skipped that check entirely. A malformed percent sequence such as /static/%%36%31dmin/secret.txt was routed as /static/%61dmin/secret.txt, so middleware on /static/admin/* did not run, and serveStatic then decoded %61 to a and served static/admin/secret.txt. The default configuration was already fixed in 2.1.3. GHSA-fj57-4f93-cfw6

serveStatic now accepts the second decode only when its result equals the routed path with %25 replaced by %. File names containing a literal %, requested as %25, are served as before.


The same fix ships in hono v4.13.18 (GHSA-74fm-fwc7-3fwp).

Full Changelog: honojs/node-server@v2.1.6...v2.1.7

honojs/hono (hono)

v4.13.18

Compare Source

Security fixes

This release includes fixes for the following security issues:

validator() skips validation for requests whose Content-Type parameters are formatted differently

Affects: validator('json') and validator('form') in hono/validator. A Content-Type with whitespace before ;, a trailing ;, or an unusual parameter name was not recognized, so the validator saw an empty object while the handler could read all fields. This completes the fix for GHSA-4h7h-rv7c-7m2v. The validator now decides by the media type alone, as c.req.parseBody() does. GHSA-92p4-j3wq-jmqx

bodyLimit() keeps every transfer chunk of a request body in memory

Affects: bodyLimit() in hono/body-limit. A body sent in very small transfer chunks was retained as one object per chunk, so a request within the configured limit could exhaust memory. The body is now buffered in one array bounded by maxSize. GHSA-39q9-qp46-w8xg

mount() and app.mount() forward a wrong path when a custom getPath adds a prefix

Affects: mount() in hono/mount and app.mount() on 4.13.16 and 4.13.17. With a getPath that prepends a prefix such as the host name, one segment too many was removed from the forwarded path, so middleware scoped inside the mount prefix could be skipped. The prefix is removed from the routed path again. Paths that would change meaning when forwarded now get 400, and an optional regular expression parameter in a mount path throws. GHSA-h25j-2p75-qj33

serveStatic() serves a path that was decoded twice when allowPercentInPath is enabled

Affects: serveStatic() in hono/serve-static and the runtime adapters, only with allowPercentInPath: true. A malformed percent escape in the request path was decoded a second time, so a path that middleware registered on the encoded form did not see could still reach a static file. The file path must now be the same as the routed path, and otherwise the response is 404. GHSA-74fm-fwc7-3fwp


Users who rely on validator(), bodyLimit(), mount() with a custom getPath, or serveStatic() with allowPercentInPath are strongly encouraged to upgrade to this version.

Full Changelog: honojs/hono@v4.13.17...v4.13.18

v4.13.17

Compare Source

What's Changed

  • fix(cookie): match the __Secure- and __Host- prefixes case-insensitively in #​5608
  • fix(utils/url): do not match a query key across separators in #​5607
  • fix(etag,pretty-json): cancel the discarded response body in #​5606
  • fix(client): detect the JSON media type with whitespace before a parameter in #​5609
  • fix(timing): honor a precision of 0 in setMetric in #​5363
  • fix(utils/mime,ssg): match media types case-insensitively in #​5449
  • fix(timing): escape double quotes and backslashes in Server-Timing descriptions in #​5478
  • fix(etag): preserve commas within quoted entity tags in #​5353
  • fix(accepts): preserve exact media type quality over subtype wildcards in #​5427
  • fix(cookie): match the __Secure- and __Host- prefixes case-insensitively in CookieConstraint in #​5611
  • fix(jsx): add the CSP nonce to all scripts generated by ErrorBoundary in #​5430
  • fix(ssg): do not reuse created directories across toSSG runs in #​5381
  • fix(aws-lambda): sanitize non-ASCII header values in API Gateway v2 events in #​5483
  • fix(jsx): escape element and object attribute values in #​5512
  • fix(jsx): do not render ref objects as attributes in #​5615
  • fix(factory): keep independent return types for nine handlers in #​5618

Full Changelog: honojs/hono@v4.13.16...v4.13.17


Configuration

📅 Schedule: (in timezone America/Los_Angeles)

  • Branch creation
    • Only on Thursday (* * * * 4)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants