Update dependency hono to v4.2.7 [SECURITY] #45
Merged
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.7
GitHub 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.txt
source
request
response is content of main.ts
Impact
Unexpected files are retrieved.
Release Notes
honojs/hono (hono)
v4.2.7
Compare Source
This release fixes "Restricted Directory Traversal in serveStatic with deno".
Full Changelog: honojs/hono@v4.2.6...v4.2.7
v4.2.6
Compare Source
What's Changed
$ws
when 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.5
Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.2.4...v4.2.5
v4.2.4
Compare Source
What's Changed
typ
Field Optional to Enhance Compatibility by @naporin0624 in https://github.com/honojs/hono/pull/2488baseUrl
fortestClient
by @yusukebe in https://github.com/honojs/hono/pull/2496OutputTypeExcludeResponseType
whenInputType
is unknown by @nagasawaryoya in https://github.com/honojs/hono/pull/2500New Contributors
Full Changelog: honojs/hono@v4.2.3...v4.2.4
v4.2.3
Compare Source
What's Changed
package.json
correctly by @yusukebe in https://github.com/honojs/hono/pull/2483Full Changelog: honojs/hono@v4.2.2...v4.2.3
v4.2.2
Compare Source
What's Changed
null
correctly by @yusukebe in https://github.com/honojs/hono/pull/2469New Contributors
Full Changelog: honojs/hono@v4.2.1...v4.2.2
v4.2.1
Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.2.0...v4.2.1
v4.2.0
Compare 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
form
does not allow you to send a DELETE method request. Instead, by sending an input withname
as_method
and 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
appendTrailingSlash
andtrimTrailingSlash
functions.For example, it redirects a GET request to
/about/me
to/about/me/
.Thanks @rnmeow!
Other features
extensionMap
https://github.com/honojs/hono/pull/2382userId
hook https://github.com/honojs/hono/pull/2389payload
https://github.com/honojs/hono/pull/2424options.origin
function https://github.com/honojs/hono/pull/2436vary
header option https://github.com/honojs/hono/pull/2426cause
option https://github.com/honojs/hono/pull/2224NO_COLOR
https://github.com/honojs/hono/pull/2228JwtTokenInvalid
object ascause
when JWT is invalid https://github.com/honojs/hono/pull/2448verifyToken
option https://github.com/honojs/hono/pull/2449verifyUser
option https://github.com/honojs/hono/pull/2450All Updates
extentionMap
by @watany-dev in https://github.com/honojs/hono/pull/2382payload
by @nakasyou in https://github.com/honojs/hono/pull/2424vary
header in cache middleware by @naporin0624 in https://github.com/honojs/hono/pull/2426crypto
if not exist by @yusukebe in https://github.com/honojs/hono/pull/2445alg
option value by @yusukebe in https://github.com/honojs/hono/pull/2446;
by @yusukebe in https://github.com/honojs/hono/pull/2447JwtTokenInvalid
object ascause
when JWT is invalid by @yusukebe in https://github.com/honojs/hono/pull/2448verifyToken
option by @yusukebe in https://github.com/honojs/hono/pull/2449verifyUser
option by @yusukebe in https://github.com/honojs/hono/pull/2450New Contributors
Full Changelog: honojs/hono@v4.1.7...v4.2.0
v4.1.7
Compare Source
What's Changed
globalThis.caches
by @yusukebe in https://github.com/honojs/hono/pull/2444Full Changelog: honojs/hono@v4.1.6...v4.1.7
v4.1.6
Compare Source
What's Changed
caches
is not defined by @yusukebe in https://github.com/honojs/hono/pull/2443Full Changelog: honojs/hono@v4.1.5...v4.1.6
v4.1.5
Compare Source
What's Changed
Arrap.prototype.map
if it is not needed return value by @nakasyou in https://github.com/honojs/hono/pull/2419await
cached 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.