Skip to content

chore(deps): bump the go-dependencies group across 1 directory with 3 updates - #496

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/go-dependencies-314352aa3f
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/go-dependencies-314352aa3f

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the go-dependencies group with 3 updates in the / directory: github.com/labstack/echo/v5, golang.org/x/crypto and golang.org/x/net.

Updates github.com/labstack/echo/v5 from 5.4.4 to 5.4.7

Release notes

Sourced from github.com/labstack/echo/v5's releases.

v5.4.7

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. GET /api/x/../admin/users matched an unprotected /api/* proxy group but reached the upstream as /admin/users, skipping middleware such as authentication on /api/admin. 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.

Fixes

  • Map binding: binding path, query, header or form data into a map whose value type is not string, []string or any returns an error instead of skipping the values, and named string types no longer panic. Fixes #3235 in #3238.
  • Gzip middleware: Accept-Encoding quality values are honored (gzip;q=0 refuses gzip, x-gzip is accepted, substrings such as notgzip no longer match), and responses that already have a Content-Encoding, for example from a reverse proxy, are passed through instead of compressed twice. Also fixes Write reporting more bytes than given at the MinLength threshold, a truncated stream when a handler only flushes, and stale Content-Length and Content-Encoding headers. Fixes #3232 and #2788 in #3239.
  • Response: Flush commits an uncommitted response, WriteHeader passes 1xx informational codes (such as 103 Early Hints) through without committing, and the built-in error handlers remove Content-Encoding, Content-Length and Content-Disposition before writing the error body. Fixes #3240, #3241 and #3242 in #3243.

Behavior changes

  • After routing, Proxy rejects paths with ./.. segments, and a Rewrite middleware attached after routing (on Echo#Use, a group or a route) applies its targets literally: relative targets and absolute URLs are rejected. Echo#Pre is unchanged.
  • Static and StaticFS return the RouteInfo of prefix/* instead of prefix*, and file names that only start with the prefix (for example /img-logo.png for e.Static("/img-", dir)) are no longer served.
  • Binding into an unsupported map type returns 400 Bad Request.
  • A handler that sets Content-Encoding itself is assumed to have encoded the body; the Gzip middleware no longer compresses it.
  • Custom HTTPErrorHandlers still need to clear stale Content-Encoding, Content-Length and Content-Disposition themselves.

No dependency or minimum Go-version changes.

v5.4.6

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.

v5.4.5

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 #3220.

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 #3221.
  • 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 #3222.
  • Header binding: BindHeaders no longer panics on nil or empty header value slices. Fixes #3169 in #3223.

Behavior change

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.

... (truncated)

Changelog

Sourced from github.com/labstack/echo/v5's changelog.

v5.4.7 - 2026-11-20

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. GET /api/x/../admin/users matched an unprotected /api/* proxy group but reached the upstream as /admin/users, skipping middleware such as authentication on /api/admin. 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.

Fixes

  • Map binding: binding path, query, header or form data into a map whose value type is not string, []string or any returns an error instead of skipping the values, and named string types no longer panic. Fixes #3235 in #3238.
  • Gzip middleware: Accept-Encoding quality values are honored (gzip;q=0 refuses gzip, x-gzip is accepted, substrings such as notgzip no longer match), and responses that already have a Content-Encoding, for example from a reverse proxy, are passed through instead of compressed twice. Also fixes Write reporting more bytes than given at the MinLength threshold, a truncated stream when a handler only flushes, and stale Content-Length and Content-Encoding headers. Fixes #3232 and #2788 in #3239.
  • Response: Flush commits an uncommitted response, WriteHeader passes 1xx informational codes (such as 103 Early Hints) through without committing, and the built-in error handlers remove Content-Encoding, Content-Length and Content-Disposition before writing the error body. Fixes #3240, #3241 and #3242 in #3243.

Behavior changes

  • After routing, Proxy rejects paths with ./.. segments, and a Rewrite middleware attached after routing (on Echo#Use, a group or a route) applies its targets literally: relative targets and absolute URLs are rejected. Echo#Pre is unchanged.
  • Static and StaticFS return the RouteInfo of prefix/* instead of prefix*, and file names that only start with the prefix (for example /img-logo.png for e.Static("/img-", dir)) are no longer served.
  • Binding into an unsupported map type returns 400 Bad Request.
  • A handler that sets Content-Encoding itself is assumed to have encoded the body; the Gzip middleware no longer compresses it.
  • Custom HTTPErrorHandlers still need to clear stale Content-Encoding, Content-Length and Content-Disposition themselves.

No dependency or minimum Go-version changes.

v5.4.6 - 2026-11-14

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.

v5.4.5 - 2026-11-12

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 #3220.

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 #3221.
  • 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 #3222.
  • Header binding: BindHeaders no longer panics on nil or empty header value slices. Fixes #3169 in #3223.

Behavior change

... (truncated)

Commits
  • 59aacdd Merge commit from fork
  • fb1d59d fix: commit response on Flush, pass through 1xx, and clear stale error header...
  • 390f278 fix(middleware): honor Accept-Encoding q-values and preserve encoded response...
  • fbd734f fix(bind): reject unsupported map value types (#3235) (#3238)
  • f275a6b Merge commit from fork
  • 53cdb2b chore: prepare v5.4.5 release (#3229)
  • 6bb25f2 fix(bind): skip empty scalar header values (#3223)
  • 8255d6e fix(ip): handle zoned IPv6 proxy peers (#3222)
  • 0c908bf fix(middleware): preserve escaped paths in slash middleware (#3221)
  • 63e00a9 fix(middleware): harden redirect URL construction (#3220)
  • Additional commits viewable in compare view

Updates golang.org/x/crypto from 0.58.0 to 0.59.0

Commits
  • 6c966a7 ssh: quote remaining peer-controlled strings in error messages
  • bc46121 ssh: fail OpenChannel when the connection is lost
  • 7e0915c ssh/test: connect to sshd over a loopback TCP connection
  • bfa619e ssh/agent: use a short socket path for ssh-agent in tests
  • 4e10f38 go.mod: update golang.org/x dependencies
  • a1058eb ssh: remove DSA support
  • d580ab7 ssh: report algorithms of the last completed key exchange
  • d1f31f6 ssh/knownhosts: skip lines that cannot be parsed
  • 04c6b4f ssh: return rest from ParseKnownHosts on parse errors
  • 3d426ad ssh: separately count rejected public key queries towards MaxAuthTries
  • Additional commits viewable in compare view

Updates golang.org/x/net from 0.60.0 to 0.62.0

Commits
  • 3de643d html: check all ancestor namespace transitions when rendering raw text
  • 05c76ee ipv4, ipv6: avoid slice bounds panics on empty batch or BPF filter
  • dad306f ipv6: avoid out-of-bounds panic in ICMPFilter
  • 9c0565a ipv4: fix TTL control message parsing on big-endian Linux and Solaris
  • 9425eb3 internal/socket, ipv4, ipv6: avoid panic on empty control message on non-Unix
  • 4b10404 ipv4, ipv6: avoid nil parse function call in ControlMessage.Parse
  • afcf8cd ipv4: fix several missing bounds checks
  • 4af4fce html: avoid quadratic complexity when coalescing text nodes
  • 7e56200 quic: per-path connection ids
  • c1d31df go.mod: update golang.org/x dependencies
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 16, 2026
… updates

Bumps the go-dependencies group with 3 updates in the / directory: [github.com/labstack/echo/v5](https://github.com/labstack/echo), [golang.org/x/crypto](https://github.com/golang/crypto) and [golang.org/x/net](https://github.com/golang/net).


Updates `github.com/labstack/echo/v5` from 5.4.4 to 5.4.7
- [Release notes](https://github.com/labstack/echo/releases)
- [Changelog](https://github.com/labstack/echo/blob/master/CHANGELOG.md)
- [Commits](labstack/echo@v5.4.4...v5.4.7)

Updates `golang.org/x/crypto` from 0.58.0 to 0.59.0
- [Commits](golang/crypto@v0.58.0...v0.59.0)

Updates `golang.org/x/net` from 0.60.0 to 0.62.0
- [Commits](golang/net@v0.60.0...v0.62.0)

---
updated-dependencies:
- dependency-name: github.com/labstack/echo/v5
  dependency-version: 5.4.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-version: 0.59.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/net
  dependency-version: 0.62.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/go-dependencies-314352aa3f branch from 751f1aa to cd4de15 Compare November 23, 2026 23:25

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants