Skip to content

fix(deps): update module github.com/labstack/echo/v4 to v4.16.6 - #75

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-labstack-echo-v4-4.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-labstack-echo-v4-4.x

Conversation

@renovate

@renovate renovate Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/labstack/echo/v4 v4.16.3 → v4.16.6 age confidence

Release Notes

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

v4.16.6

Compare Source

Security

  • Proxy middleware: after routing, a . or .. path segment (also encoded as %2e) was resolved by Rewrite/RegexRewrite or by the upstream into a path the router never matched, bypassing route and group middleware such as authentication. After routing, Proxy now returns 400 Bad Request for such paths, and rewrite targets in Proxy and the Rewrite middleware are applied literally instead of being resolved; a target with a dot segment or a leading // is rejected. Fixes GHSA-w5j2-g3fc-pwr6. Reported by AndyAnh174.
  • Static files: Static, StaticFS, Group.Static and Group.StaticFS with a prefix without a trailing slash registered prefix*, so /assetsadmin/private.txt was served from <root>/admin/private.txt for e.Static("/assets", root), bypassing a guard on /assets/admin. They now register prefix/*, plus prefix for the redirect to prefix/. Fixes GHSA-76qj-xf66-r429. Reported by AndyAnh174.
  • Static middleware on a group: documented that middleware.Static attached with Group#Use is not protected by guards on routes inside the group or on nested groups, and that Group#Static should be used for files behind such guards. See GHSA-5hp7-4fcm-57f9. Reported by AndyAnh174.

Behavior changes

  • After routing, Proxy rejects paths with ./.. segments, and a Rewrite middleware attached after routing applies its targets literally: relative targets and absolute URLs are rejected. Echo#Pre is unchanged.
  • Static and StaticFS return the route for prefix/* instead of prefix*, and file names that only start with the prefix are no longer served.

No public API, dependency or minimum Go-version changes; Go 1.26 or later remains required.

v4.16.5

Compare Source

Security

  • Proxy middleware: a client could remove X-Forwarded-Proto from the upstream request by naming it in the Connection header, on plain HTTP requests and WebSocket upgrades. The proxy now sets X-Forwarded-Proto again after Go removes hop-by-hop headers, as it already does for X-Real-IP. Fixes GHSA-h6x5-phvw-c55c. Reported by zachary-satterly.

Behavior change

A custom balancer that replaces the request and sets its own X-Forwarded-Proto no longer reaches the upstream with that value; the proxy uses the scheme of the original request. A custom ProxyConfig.Transport can still set the header.

No public API, dependency or minimum Go-version changes; Go 1.26 or later remains required.

v4.16.4

Compare Source

Security

  • Redirect middleware: HTTPSRedirect, HTTPSWWWRedirect, HTTPSNonWWWRedirect, WWWRedirect and NonWWWRedirect now return 400 Bad Request instead of redirecting when the host is empty, starts with : or ., contains %, or is empty after removing www.. Before this change, such hosts could produce an open redirect. The middleware no longer redirects OPTIONS * requests, maps ws and wss to http and https in redirect targets, and matches the www. prefix case-insensitively. Fixes GHSA-3f6j-cw5h-qw9c (#​3217) in #​3224.

Fixes

  • Trailing slash middleware: AddTrailingSlash and RemoveTrailingSlash keep escaped path segments such as %2F in redirect and forward targets, so the request still matches its original route. Fixes #​3206 in #​3225.
  • IPv6 zones: ExtractIPFromXFFHeader and ExtractIPFromRealIPHeader trust zoned link-local proxy peers such as [fe80::1%eth0]:8080, with or without a port. Fixes #​3179 in #​3226.
  • Header binding: BindHeaders no longer panics on nil or empty header value slices. Fixes #​3169 in #​3227.

Behavior changes

  • Context.RealIP() and ExtractIPDirect() now return a zoned link-local peer without its zone: fe80::1, not fe80::1%eth0. Update logs, allowlists or rate-limit keys that store the zoned form.
  • HTTPSWWWRedirect keeps its v4 behavior: it does not redirect plain HTTP requests for hosts that already start with www.. v5 redirects these requests.

No public API, dependency or minimum Go-version changes; Go 1.26 or later remains required.


Configuration

📅 Schedule: (UTC)

  • 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
renovate Bot requested a review from a team as a code owner November 12, 2026 18:02
@socket-security

socket-security Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub.com/​labstack/​echo/​v4@​v4.16.3 ⏵ v4.16.672 +1100100100100

View full report

@renovate renovate Bot changed the title fix(deps): update module github.com/labstack/echo/v4 to v4.16.4 fix(deps): update module github.com/labstack/echo/v4 to v4.16.5 Nov 15, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-4.x branch from a43d1d4 to e500577 Compare November 15, 2026 07:36
@renovate renovate Bot changed the title fix(deps): update module github.com/labstack/echo/v4 to v4.16.5 fix(deps): update module github.com/labstack/echo/v4 to v4.16.6 Nov 20, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-4.x branch from e500577 to d2dc116 Compare November 20, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants