chore(deps): update module github.com/labstack/echo/v4 to v4.13.0 #17
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/github.com-labstack-echo-v4-4.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v4.12.0
->v4.13.0
Release Notes
labstack/echo (github.com/labstack/echo/v4)
v4.13.0
Compare Source
BREAKING CHANGE JWT Middleware Removed from Core use labstack/echo-jwt instead
The JWT middleware has been removed from Echo core due to another security vulnerability, CVE-2024-51744. For more details, refer to issue #2699. A drop-in replacement is available in the labstack/echo-jwt repository.
Important: Direct assignments like
token := c.Get("user").(*jwt.Token)
will now cause a panic due to an invalid cast. Update your code accordingly. Replace the current imports from"github.com/golang-jwt/jwt"
in your handlers to the new middleware version using"github.com/golang-jwt/jwt/v5"
.Background:
The version of
golang-jwt/jwt
(v3.2.2) previously used in Echo core has been in an unmaintained state for some time. This is not the first vulnerability affecting this library; earlier issues were addressed in PR #1946.JWT middleware was marked as deprecated in Echo core as of v4.10.0 on 2022-12-27. If you did not notice that, consider leveraging tools like Staticcheck to catch such deprecations earlier in you dev/CI flow. For bonus points - check out gosec.
We sincerely apologize for any inconvenience caused by this change. While we strive to maintain backward compatibility within Echo core, recurring security issues with third-party dependencies have forced this decision.
Enhancements
MultipartForm
test by @martinyonatann in https://github.com/labstack/echo/pull/2682bind
: add support of multipart multi files by @martinyonatann in https://github.com/labstack/echo/pull/2684html/template
andtext/template
packages. by @aldas in https://github.com/labstack/echo/pull/2690Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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 has been generated by Renovate Bot.