发布

  • chore(deps): bump hono from 4.9.7 to 4.10.3 in /docs/_scripts/js_translation/codeblocks (#6339)

    frostbyte_neo 发布于 2025-11-04 21:52:15 +00:00 | 653 次提交 在此版本后已推送到 main

    Bumps hono from 4.9.7 to 4.10.3.

    Release notes

    Sourced from hono's releases.

    v4.10.3

    Securiy Fix

    A security issue in the CORS middleware has been fixed. In some cases, a request header could affect the Vary response header. Please update to the latest version if you are using the CORS middleware.

    What's Changed

    New Contributors

    Full Changelog: https://github.com/honojs/hono/compare/v4.10.2...v4.10.3

    v4.10.2

    Security hardening improvement

    If you are using JWT middleware, please read the following and consider applying the configuration.

    Improper Authorization in Hono (JWT Audience Validation)

    Hono’s JWT authentication middleware did not validate the aud (Audience) claim by default. As a result, applications using the middleware without an explicit audience check could accept tokens intended for other audiences, leading to potential cross-service access (token mix-up).

    The issue is addressed by adding a new verification.aud configuration option to allow RFC 7519–compliant audience validation. This change is classified as a security hardening improvement, but the lack of validation can still be considered a vulnerability in deployments that rely on default JWT verification.

    Recommended secure configuration

    You can enable RFC 7519–compliant audience validation using the new verification.aud option:

    import { Hono } from 'hono'
    import { jwt } from 'hono/jwt'
    

    const app = new Hono()

    app.use(
    '/api/*',
    jwt({
    secret: 'my-secret',
    verification: {
    // Require this API to only accept tokens with aud = 'service-a'
    aud: 'service-a',
    },
    })
    )

    What's Changed

    ... (truncated)

    Commits
    • fcefd50 4.10.3
    • 95ae4d3 refactor(jwt): reduce the size of the code generated by minification (#4480)
    • d9b8b4b Merge commit from fork
    • 5216117 fix(request-id): validation accepts = (#4478)
    • 253ec28 fix(aws-lambda): serve microsoft office files as binary in lambda handler (#4...
    • 0c6455d 4.10.2
    • 45ba3bf Merge commit from fork
    • 4cbad8b tests: Fix test case of handlers without a path (#4472)
    • db764c2 4.10.1
    • 8774bf9 fix(types): cannot .use non-return mw from createMiddleware (#4465)
    • Additional commits viewable in compare view

    Dependabot compatibility<br>
score

    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 rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits
      that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after
      your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge
      and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating
      it. You can achieve the same result by closing it manually
    • @dependabot show <dependency name> ignore conditions will show all
      of the ignore conditions of the specified dependency
    • @dependabot ignore this major version will 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 version will 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 dependency will 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
      .

    Signed-off-by: dependabot[bot] support@github.com
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    下载附件