chore: bump hono from 4.10.3 to 4.11.4
Bumps hono from 4.10.3 to 4.11.4.
Release notes
Sourced from hono's releases.
v4.11.4
Security
Fixed a JWT algorithm confusion issue in the JWT and JWK/JWKS middleware.
Both middlewares now require an explicit algorithm configuration to prevent the verification algorithm from being influenced by untrusted JWT header values.
If you are using the JWT or JWK/JWKS middleware, please update to the latest version as soon as possible.
JWT middleware
import { jwt } from 'hono/jwt'app.use( '/auth/*', jwt({ secret: 'it-is-very-secret', alg: 'HS256', // required }) )
JWK/JWKS middleware
import { jwk } from 'hono/jwk'app.use( '/auth/*', jwk({ jwks_uri: 'https://example.com/.well-known/jwks.json', alg: ['RS256'], // required (asymmetric algorithms only) }) )
For more details, see the Security Advisory.
- https://github.com/honojs/hono/security/advisories/GHSA-f67f-6cw9-8mq4
- https://github.com/honojs/hono/security/advisories/GHSA-3vhc-576x-3qv4
What's Changed
- test(utils/jwt): add missing algorithm types in jwa.test.ts by
@flathill404in honojs/hono#4607- chore: bump
@hono/eslint-configand enable curly rule by@yusukebein honojs/hono#4620- docs(bun/websocket): Fixed a typo in hono/bun deprecation message and updated test. by
@Itsnotakain honojs/hono#4618- test: support
algoption for JWT middleware by@yusukebein honojs/hono#4624New Contributors
@flathill404made their first contribution in honojs/hono#4607
... (truncated)
Commits
28452f04.11.4190f6e2Merge commit from forka48ef18test: supportalgoption for JWT middleware (#4624)cc0aa7aMerge commit from forkef2a4b8docs(bun/websocket): Fixed a typo in hono/bun deprecation message and updated...8139399chore: bump@hono/eslint-configand enable curly rule (#4620)4e87275test(utils/jwt): add missing algorithm types in jwa.test.ts (#4606) (#4607)79977404.11.3489af0bfix(types): fix middleware union type merging in MergeMiddlewareResponse (#4602)6ca01ec4.11.2- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.