Skip to content

fix(deps): update module github.com/labstack/echo/v4 to v5#80

Merged
little-forest merged 2 commits intomainfrom
renovate/github.com-labstack-echo-v4-5.x
Mar 20, 2026
Merged

fix(deps): update module github.com/labstack/echo/v4 to v5#80
little-forest merged 2 commits intomainfrom
renovate/github.com-labstack-echo-v4-5.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 18, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/labstack/echo/v4 v4.15.1v5.0.4 age confidence

Release Notes

labstack/echo (github.com/labstack/echo/v4)

v5.0.4

Compare Source

Enhancements

v5.0.3

Compare Source

Security

  • Fix directory traversal vulnerability under Windows in Static middleware when default Echo filesystem is used. Reported by @​shblue21.

This applies to cases when:

  • Windows is used as OS
  • middleware.StaticConfig.Filesystem is nil (default)
  • echo.Filesystem is has not been set explicitly (default)

Exposure is restricted to the active process working directory and its subfolders.

v5.0.2

Compare Source

Security

  • Fix Static middleware with config.Browse=true lists all files/subfolders from config.Filesystem root and not starting from config.Root in #​2887

v5.0.1

Compare Source

v5.0.0

Compare Source

Echo v5 is maintenance release with major breaking changes

  • Context is now struct instead of interface and we can add method to it in the future in minor versions.
  • Adds new Router interface for possible new routing implementations.
  • Drops old logging interface and uses moderm log/slog instead.
  • Rearranges alot of methods/function signatures to make them more consistent.

Upgrade notes and v4 support:

  • Echo v4 is supported with security* updates and bug fixes until 2026-12-31
  • If you are using Echo in a production environment, it is recommended to wait until after 2026-03-31 before upgrading.
  • Until 2026-03-31, any critical issues requiring breaking v5 API changes will be addressed, even if this violates semantic versioning.

See API_CHANGES_V5.md for public API changes between v4 and v5, notes on upgrading.

Upgrading TLDR:

If you are using Linux you can migrate easier parts like that:

find . -type f -name "*.go" -exec sed -i 's/ echo.Context/ *echo.Context/g' {} +
find . -type f -name "*.go" -exec sed -i 's/echo\/v4/echo\/v5/g' {} +

macOS

find . -type f -name "*.go" -exec sed -i '' 's/ echo.Context/ *echo.Context/g' {} +
find . -type f -name "*.go" -exec sed -i '' 's/echo\/v4/echo\/v5/g' {} +

or in your favorite IDE

Replace all:

  1. echo.Context -> *echo.Context
  2. echo/v4 -> echo/v5

This should solve most of the issues. Probably the hardest part is updating all the tests.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Jan 18, 2026

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 4 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.24.0 -> 1.25.0
golang.org/x/crypto v0.46.0 -> v0.47.0
golang.org/x/net v0.48.0 -> v0.49.0
golang.org/x/sys v0.39.0 -> v0.40.0
golang.org/x/text v0.32.0 -> v0.33.0

@renovate renovate bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch 2 times, most recently from 73f1fe0 to 175dbbe Compare February 2, 2026 22:50
@renovate renovate bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch from 175dbbe to 9bc4d36 Compare February 6, 2026 18:39
@renovate renovate bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch from 9bc4d36 to edaa7d7 Compare February 15, 2026 18:23
@renovate renovate bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch from edaa7d7 to 6cf86d4 Compare February 24, 2026 13:36
@renovate renovate bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch from 6cf86d4 to 84ce4a7 Compare March 5, 2026 19:15
@renovate renovate bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch from 84ce4a7 to 5f2f191 Compare March 20, 2026 10:26
- Update import paths from echo/v4 to echo/v5
- Change echo.Context to *echo.Context in handler signatures
- Replace deprecated e.Logger (gommon) with log/slog
- Run go mod tidy to remove unused v4 dependencies

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@renovate
Copy link
Contributor Author

renovate bot commented Mar 20, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@little-forest little-forest merged commit d30ef7d into main Mar 20, 2026
2 checks passed
@renovate renovate bot deleted the renovate/github.com-labstack-echo-v4-5.x branch March 20, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant