Zum Inhalt springen

Hono Release Notes

Einträge
50
Quellen
1
Zuletzt aktualisiert

Folge Hono, um die Release Notes in deinen Feed zu holen.

Hono

v4.13.23

Security fixes

This release includes fixes for the following security issues:

TrieRouter treats __proto__ as a registered HTTP method

Affects: applications that use TrieRouter and accept arbitrary method names, for example with HTTP/2 on Node.js or with hono/method-override. A request with a method name such as __proto__ made the router add a property to Object.prototype, so later requests in the same process could fail until it was restarted. The router no longer treats an inherited property as a registered method. GHSA-656w-x92q-369m

except() skips a middleware for a path that only starts or ends with an alternative of a constrained parameter

Affects: except() in hono/combine, with a path condition that has an alternation in a constrained parameter. A path that only started or ended with one of the alternatives also matched the condition, so the middleware did not run for it. The regular expression of a parameter is now grouped, and routes on TrieRouter with such a parameter are corrected by the same change. GHSA-586x-c76g-h528

getPath() drops the first path segment when the request URL has no scheme and host …

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.22

This release includes hardening changes. We recommend that you update.

What's Changed

Basic Auth Middleware throws an error for a value that is not a string

basicAuth() now throws an error at setup if username or password is not a string. If you pass an env variable, check that it is set.

Full Changelog: https://github.com/honojs/hono/compare/v4.13.21...v4.13.22

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.21

Hardening

  • hono/jwt: a JWT signature must be in the canonical Base64URL form. A signature with = padding, or with non-zero unused bits in the last character, is now rejected. Thanks to @xpcmdshell, @ongteckwu, @ffasterss, and @shirabe0x05 for the reports.
  • hono/client: a path param can no longer change the host of the request URL when the base URL is relative. Thanks to @ongteckwu for the report.

What's Changed

Full Changelog: https://github.com/honojs/hono/compare/v4.13.20...v4.13.21

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.20

What's Changed

Full Changelog: https://github.com/honojs/hono/compare/v4.13.19...v4.13.20

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

@hono/aws-lambda@1.0.2

What's Changed

  • fix(aws-lambda,lambda-edge): keep a leading UTF-8 BOM in a text body (#5665)
  • fix(aws-lambda): sanitize non-ASCII header values in API Gateway v2 events (#5483)

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.19

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.18

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.17

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.15

What's Changed

Full Changelog: https://github.com/honojs/hono/compare/v4.13.14...v4.13.15

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.16

Security fixes

This release includes fixes for the following security issues:

mount() and app.mount() can forward a path that bypasses middleware scoped inside the mount prefix

Affects: mount() in hono/mount and app.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-7975

RegExpRouter skips wildcard middleware for certain route patterns and for paths with an encoded line terminator

Affects: RegExpRouter, including the default SmartRouter. 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]*}, throw UnsupportedPathError. Regenerate PreparedRegExpRouter data. GHSA-h7mg-cq63-vhpq

validator('form') skips validation for multipart/form-data requests with extra parameters …

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

v4.13.14

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

@hono/vercel 1.0.1 akzeptiert Hono-v5-Vorabversionen

@hono/vercel 1.0.1 akzeptiert Hono-v5-Prereleases im Peer-Range von hono, sodass npm install mit hono@next nicht mehr mit ERESOLVE fehlschlägt, und hält interne Typen in der gebündelten d.ts privat.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

@hono/service-worker 1.0.1 akzeptiert Hono-v5-Vorabversionen

@hono/service-worker 1.0.1 akzeptiert Hono-v5-Prereleases im Peer-Range von hono, sodass npm install mit hono@next nicht mehr mit ERESOLVE fehlschlägt, und hält interne Typen in der gebündelten d.ts privat.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

@hono/netlify 1.0.2 akzeptiert Hono-v5-Vorabversionen

@hono/netlify 1.0.2 akzeptiert Hono-v5-Prereleases im Peer-Range von hono, sodass npm install mit hono@next nicht mehr mit ERESOLVE fehlschlägt, und hält interne Typen in der gebündelten d.ts privat.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

@hono/lambda-edge 1.0.1 akzeptiert Hono-v5-Vorabversionen

@hono/lambda-edge 1.0.1 akzeptiert Hono-v5-Prereleases im Peer-Range von hono, sodass npm install mit hono@next nicht mehr mit ERESOLVE fehlschlägt, und hält interne Typen in der gebündelten d.ts privat.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

@hono/deno 1.0.3 akzeptiert Hono-v5-Vorabversionen

@hono/deno 1.0.3 akzeptiert Hono-v5-Prereleases im Peer-Range von hono, sodass npm install mit hono@next nicht mehr mit ERESOLVE fehlschlägt, und hält interne Typen in der gebündelten d.ts privat.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Hono

@hono/cloudflare-workers 1.0.1 akzeptiert Hono-v5-Vorabversionen

@hono/cloudflare-workers 1.0.1 akzeptiert Hono-v5-Prereleases im Peer-Range von hono, sodass npm install mit hono@next nicht mehr mit ERESOLVE fehlschlägt, und hält interne Typen in der gebündelten d.ts privat.

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden