fix(deps): update dependency hono to v4.6.5 [security]#115
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
fix(deps): update dependency hono to v4.6.5 [security]#115renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
e17f8c7 to
1d7916b
Compare
1d7916b to
932dd6f
Compare
932dd6f to
a5c1326
Compare
a5c1326 to
0c582cd
Compare
0c582cd to
54b0313
Compare
54b0313 to
3a3107d
Compare
3a3107d to
29f64c7
Compare
29f64c7 to
b7f8c30
Compare
b7f8c30 to
a47b8a2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.5.8->4.6.5GitHub Vulnerability Alerts
CVE-2024-48913
Summary
Bypass CSRF Middleware by a request without Content-Type herader.
Details
Although the csrf middleware verifies the Content-Type Header, Hono always considers a request without a Content-Type header to be safe.
https://github.com/honojs/hono/blob/cebf4e87f3984a6a034e60a43f542b4c5225b668/src/middleware/csrf/index.ts#L76-L89
PoC
Similarly, the fetch API does not add a Content-Type header for requests that do not include a Body.
Impact
Bypass csrf protection implemented with hono csrf middleware.
Release Notes
honojs/hono (hono)
v4.6.5Compare Source
Security fix for CSRF Protection Middleware
This release includes a security fix for CSRF Protection Middleware. If you are using CSRF Protection Middleware, please upgrade this
honopackage immediately.Before this release, a request without a
Content-Typeheader can bypass the protection. This fix does not allow it. See: GHSA-2234-fmw7-43wrWhat's Changed
v2by @yusukebe in https://github.com/honojs/hono/pull/3506Access-Control-Allow-Originif there is no matching origin by @uki00a in https://github.com/honojs/hono/pull/3510New Contributors
Full Changelog: honojs/hono@v4.6.4...v4.6.5
v4.6.4Compare Source
What's Changed
crypto-jsfrom dev dependencies by @yusukebe in https://github.com/honojs/hono/pull/3447createMiddlewareby @yusukebe in https://github.com/honojs/hono/pull/3498globalThisby @sapphi-red in https://github.com/honojs/hono/pull/3500overridetotoStringToBufferin classes extendingJSXNodeby @yusukebe in https://github.com/honojs/hono/pull/3505New Contributors
Full Changelog: honojs/hono@v4.6.3...v4.6.4
v4.6.3Compare Source
This release has many new features, but each feature is small, so we've released it as a patch release.
What's Changed
runtime_teststoruntime-testsby @yusukebe in https://github.com/honojs/hono/pull/3419everymiddleware work with short-circuiting middlewares by @paolostyle in https://github.com/honojs/hono/pull/3441renderToStringby @usualoma in https://github.com/honojs/hono/pull/3432New Contributors
Full Changelog: honojs/hono@v4.6.2...v4.6.3
v4.6.2Compare Source
What's Changed
Full Changelog: honojs/hono@v4.6.1...v4.6.2
v4.6.1Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.6.0...v4.6.1
v4.6.0Compare Source
Hono v4.6.0 is now available!
One of the highlights of this release is the Context Storage Middleware. Let's introduce it.
Context Storage Middleware
Many users may have been waiting for this feature. The Context Storage Middleware uses
AsyncLocalStorageto allow handling of the current Context object even outside of handlers.For example, let’s define a Hono app with a variable
message: string.To enable Context Storage Middleware, register
contextStorage()as middleware at the top and set themessagevalue.getContext()returns the current Context object, allowing you to get the value of themessagevariable outside the handler.In the case of Cloudflare Workers, you can also access the
Bindingsoutside the handler by using this middleware.Thanks @marceloverdijk !
New features
c.env.eventContextin handleMiddleware https://github.com/honojs/hono/pull/3332WSContexthttps://github.com/honojs/hono/pull/3337Content-Encodingwhenstreamis true https://github.com/honojs/hono/pull/3355precompressedoption https://github.com/honojs/hono/pull/3366Promise<string>or (async)JSX.ElementinstreamSSEhttps://github.com/honojs/hono/pull/3344onFoundoption https://github.com/honojs/hono/pull/3396Other changes
New Contributors
Full Changelog: honojs/hono@v4.5.11...v4.6.0
v4.5.11Compare Source
What's Changed
TwittertoXby @yusukebe in https://github.com/honojs/hono/pull/3354New Contributors
Full Changelog: honojs/hono@v4.5.10...v4.5.11
v4.5.10Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.5.9...v4.5.10
v4.5.9Compare Source
What's Changed
NO_COLORby @ryuapp in https://github.com/honojs/hono/pull/3306type(MIME) attribute types by @ssssota in https://github.com/honojs/hono/pull/3305Full Changelog: honojs/hono@v4.5.8...v4.5.9
Configuration
📅 Schedule: Branch creation - "" (UTC), 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.
🔕 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.