Update dependency hono to v4.2.7 [SECURITY]#45
Merged
Conversation
681886c to
0fa3d49
Compare
nicolewhite
approved these changes
Apr 24, 2024
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.1.4->4.2.7GitHub Vulnerability Alerts
CVE-2024-32869
Summary
When using serveStatic with deno, it is possible to directory traverse where main.ts is located.
My environment is configured as per this tutorial
https://hono.dev/getting-started/deno
PoC
$ tree . ├── deno.json ├── deno.lock ├── main.ts ├── README.md └── static └── a.txtsource
request
response is content of main.ts
Impact
Unexpected files are retrieved.
Release Notes
honojs/hono (hono)
v4.2.7Compare Source
This release fixes "Restricted Directory Traversal in serveStatic with deno".
Full Changelog: honojs/hono@v4.2.6...v4.2.7
v4.2.6Compare Source
What's Changed
$wswhen not used WebSockets by @nakasyou in https://github.com/honojs/hono/pull/2532New Contributors
Full Changelog: honojs/hono@v4.2.5...v4.2.6
v4.2.5Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.2.4...v4.2.5
v4.2.4Compare Source
What's Changed
typField Optional to Enhance Compatibility by @naporin0624 in https://github.com/honojs/hono/pull/2488baseUrlfortestClientby @yusukebe in https://github.com/honojs/hono/pull/2496OutputTypeExcludeResponseTypewhenInputTypeis unknown by @nagasawaryoya in https://github.com/honojs/hono/pull/2500New Contributors
Full Changelog: honojs/hono@v4.2.3...v4.2.4
v4.2.3Compare Source
What's Changed
package.jsoncorrectly by @yusukebe in https://github.com/honojs/hono/pull/2483Full Changelog: honojs/hono@v4.2.2...v4.2.3
v4.2.2Compare Source
What's Changed
nullcorrectly by @yusukebe in https://github.com/honojs/hono/pull/2469New Contributors
Full Changelog: honojs/hono@v4.2.1...v4.2.2
v4.2.1Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.2.0...v4.2.1
v4.2.0Compare Source
Hono v4.2.0 is now available! Let's take a look at the new features.
Added more algorithms for JWT
The number of algorithms that JWT util can handle has increased from only 3 to 13! This means that JWT util now implements many of the algorithms supported by JWT.
You can use these algorithms from the JWT middleware or JWT helpers. Thanks @Code-Hex!
Method Override Middleware
Method Override Middleware has been added. This middleware override the method of the real request with the specified method.
HTML
formdoes not allow you to send a DELETE method request. Instead, by sending an input withnameas_methodand a value ofDELETE, you can call the handler registered inapp.delete().Trailing Slash Middleware
Trailing Slash Middleware resolves the handling of Trailing Slashes in GET requests. You can use
appendTrailingSlashandtrimTrailingSlashfunctions.For example, it redirects a GET request to
/about/meto/about/me/.Thanks @rnmeow!
Other features
extensionMaphttps://github.com/honojs/hono/pull/2382userIdhook https://github.com/honojs/hono/pull/2389payloadhttps://github.com/honojs/hono/pull/2424options.originfunction https://github.com/honojs/hono/pull/2436varyheader option https://github.com/honojs/hono/pull/2426causeoption https://github.com/honojs/hono/pull/2224NO_COLORhttps://github.com/honojs/hono/pull/2228JwtTokenInvalidobject ascausewhen JWT is invalid https://github.com/honojs/hono/pull/2448verifyTokenoption https://github.com/honojs/hono/pull/2449verifyUseroption https://github.com/honojs/hono/pull/2450All Updates
extentionMapby @watany-dev in https://github.com/honojs/hono/pull/2382payloadby @nakasyou in https://github.com/honojs/hono/pull/2424varyheader in cache middleware by @naporin0624 in https://github.com/honojs/hono/pull/2426cryptoif not exist by @yusukebe in https://github.com/honojs/hono/pull/2445algoption value by @yusukebe in https://github.com/honojs/hono/pull/2446;by @yusukebe in https://github.com/honojs/hono/pull/2447JwtTokenInvalidobject ascausewhen JWT is invalid by @yusukebe in https://github.com/honojs/hono/pull/2448verifyTokenoption by @yusukebe in https://github.com/honojs/hono/pull/2449verifyUseroption by @yusukebe in https://github.com/honojs/hono/pull/2450New Contributors
Full Changelog: honojs/hono@v4.1.7...v4.2.0
v4.1.7Compare Source
What's Changed
globalThis.cachesby @yusukebe in https://github.com/honojs/hono/pull/2444Full Changelog: honojs/hono@v4.1.6...v4.1.7
v4.1.6Compare Source
What's Changed
cachesis not defined by @yusukebe in https://github.com/honojs/hono/pull/2443Full Changelog: honojs/hono@v4.1.5...v4.1.6
v4.1.5Compare Source
What's Changed
Arrap.prototype.mapif it is not needed return value by @nakasyou in https://github.com/honojs/hono/pull/2419awaitcached contents by @yusukebe in https://github.com/honojs/hono/pull/2430New Contributors
Full Changelog: honojs/hono@v4.1.4...v4.1.5
Configuration
📅 Schedule: Branch creation - "" in timezone America/Chicago, 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 has been generated by Mend Renovate. View repository job log here.