-
Notifications
You must be signed in to change notification settings - Fork 47
chore(deps): update dependency hono to v4.10.3 [security] #1023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Comment |
🌩 Deploying with Cloudflare Pages
|
10f5d3b to
db18861
Compare
🌩 Deploying with Cloudflare Pages
|
db18861 to
df200bc
Compare
🌩 Deploying with Cloudflare Pages
|
df200bc to
7ffee9c
Compare
🌩 Deploying with Cloudflare Pages
|
7ffee9c to
b605949
Compare
🌩 Deploying with Cloudflare Pages
|
b605949 to
7958062
Compare
🌩 Deploying with Cloudflare Pages
|
7958062 to
98dd59a
Compare
🌩 Deploying with Cloudflare Pages
|
98dd59a to
68e8dbc
Compare
🌩 Deploying with Cloudflare Pages
|
68e8dbc to
c430cb7
Compare
🌩 Deploying with Cloudflare Pages
|
c430cb7 to
3a5f85f
Compare
🌩 Deploying with Cloudflare Pages
|
3a5f85f to
e76dfbe
Compare
🌩 Deploying with Cloudflare Pages
|
e76dfbe to
59a1d4f
Compare
🌩 Deploying with Cloudflare Pages
|
59a1d4f to
42295bd
Compare
🌩 Deploying with Cloudflare Pages
|
42295bd to
4d15731
Compare
🌩 Deploying with Cloudflare Pages
|
4d15731 to
22f8fba
Compare
🌩 Deploying with Cloudflare Pages
|
This PR contains the following updates:
4.9.11->4.10.3GitHub Vulnerability Alerts
CVE-2025-62610
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.audconfiguration 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.audoption:Below is the original description by the reporter. For security reasons, it does not include PoC reproduction steps, as the vulnerability can be clearly understood from the technical description.
The original description by the reporter
Summary
Hono’s JWT Auth Middleware does not provide a built-in
aud(Audience) verification option, which can cause confused-deputy / token-mix-up issues: an API may accept a valid token that was issued for a different audience (e.g., another service) when multiple services share the same issuer/keys. This can lead to unintended cross-service access. Hono’s docs list verification options foriss/nbf/iat/exponly, with noaudsupport; RFC 7519 requires that when anaudclaim is present, tokens MUST be rejected unless the processing party identifies itself in that claim.Note: This problem likely exists in the JWK/JWKS-based middleware as well (e.g.,
jwk/verifyWithJwks)Details
verifyOptionsenumerate onlyiss,nbf,iat, andexp; there is noaudoption. The same omission appears in the JWT Helper’s “Payload Validation” list. Developers relying on the middleware for complete standards-aligned validation therefore won’t check audience by default.audclaim; if it does not, the JWT MUST be rejected (whenaudis present). Lack of a first-classaudcheck increases the risk that tokens issued for Service B are accepted by Service A.Impact
Type: Authentication/authorization weakness via token mix-up (confused-deputy).
Who is impacted: Any Hono user who:
aud.What can happen:
Recommended remediation:
verifyOptions.aud(string | string[] | RegExp) to the middleware and enforce RFC 7519 semantics: In verify method, ifaudis present and does not match with specified audiences, reject.audhandling exists in the JWK/JWKS flow (jwkmiddleware /verifyWithJwks) so users of external IdPs can enforce audience consistently.GHSA-q7jf-gf43-6x6p
Summary
A flaw in the CORS middleware allowed request
Varyheaders to be reflected into the response, enabling attacker-controlledVaryvalues and potentially affecting cache behavior.Details
The middleware previously copied the
Varyheader from the request whenoriginwas not set to"*". SinceVaryis a response header that should only be managed by the server, this could allow an attacker to influence caching behavior or cause inconsistent CORS handling.Most environments will see impact only when shared caches or proxies rely on the
Varyheader. The practical effect varies by configuration.Impact
May cause cache key pollution and inconsistent CORS enforcement in certain setups. No direct confidentiality, integrity, or availability impact in default configurations.
Resolution
Update to the latest patched release. The CORS middleware has been corrected to handle
Varyexclusively as a response header.Release Notes
honojs/hono (hono)
v4.10.3Compare Source
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
=by @ryuapp in #4478New Contributors
Full Changelog: honojs/hono@v4.10.2...v4.10.3
v4.10.2Compare Source
v4.10.1Compare Source
What's Changed
.usenon-return mw fromcreateMiddlewareby @NamesMT in #4465Full Changelog: honojs/hono@v4.10.0...v4.10.1
v4.10.0Compare Source
Release Notes
Hono v4.10.0 is now available!
This release brings improved TypeScript support and new utilities.
The main highlight is the enhanced middleware type definitions that solve a long-standing issue with type safety for RPC clients.
Middleware Type Improvements
Imagine the following app:
The client with RPC:
Previously, it couldn't infer the responses from middleware, so a type error was thrown.
Now the responses are correctly typed.
This was a long-standing issue and we were thinking it was super difficult to resolve it. But now come true.
Thank you for the great work @slawekkolodziej!
cloneRawRequest Utility
The new
cloneRawRequestutility allows you to clone the raw Request object after it has been consumed by validators or middleware.Thanks @kamaal111!
New features
All changes
New Contributors
Full Changelog: honojs/hono@v4.9.12...v4.10.0
v4.9.12Compare Source
What's Changed
PreparedRegExpRouterfor optimization and added tests by @usualoma in #4456tree shakingby @usualoma in #4458Full Changelog: honojs/hono@v4.9.11...v4.9.12
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.