Skip to content

deps(go): bump github.com/labstack/echo/v4 from 4.15.3 to 4.16.1 - #2298

Merged
nadaverell merged 1 commit into
mainfrom
dependabot/go_modules/github.com/labstack/echo/v4-4.16.1
Oct 27, 2026
Merged

nadaverell merged 1 commit into
mainfrom
dependabot/go_modules/github.com/labstack/echo/v4-4.16.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 25, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/labstack/echo/v4 from 4.15.3 to 4.16.1.

Release notes

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

v4.16.1

Security fixes

Upgrade with go get github.com/labstack/echo/[email protected].

Go 1.26 or later is now required to use patched golang.org/x/ dependencies. Build deployments with a supported, patched Go toolchain.

  • Validate upstream WebSocket upgrade responses through Go's HTTP reverse proxy. Rejected upgrades no longer leave a raw tunnel that bypasses Echo routing and route middleware. GHSA-cxf3-9h37-7rr8
  • Close both WebSocket connections when either side disconnects, including when an upstream ignores client EOF. GHSA-9969-6676-49h5
  • Bound BodyDump request and response captures to 5 MiB each by default while preserving complete payload delivery and request read errors. GHSA-f48p-c9v4-h7xv
  • Bound decompressed request bodies to 100 MiB by default. Overflow returns HTTP 413, including through JSON and XML binding; exactly-at-limit bodies remain valid. GHSA-h7wr-284f-5qvc
  • Upgrade golang.org/x/net to v0.60.0 and related dependencies, addressing GO-2026-6617, GO-2026-6612, GO-2026-6611, GO-2026-6610 and GO-2026-6603.
  • Include the BodyLimit overflow-check correction and static-path hardening already merged since v4.16.0.

Behavior to review when upgrading

BodyDumpConfig.MaxRequestBytes and MaxResponseBytes control capture limits. Zero selects the 5 MiB default; -1 disables a limit. These limits affect captured logging data only: handlers and clients still receive complete bodies.

DecompressConfig.MaxDecompressedSize controls the decompressed-body limit. Zero selects the 100 MiB default; -1 disables it. Apply any smaller application body limit after decompression, and handle request-body read errors.

The proxy removes incoming Forwarded headers as defensive hardening. Backends relying on that header should use forwarding headers generated from the configured trusted IP extractor and scheme. WebSocket requests now honor the configured proxy transport, response modifier, target path and query in the same way as HTTP requests; ws and wss targets remain supported.

Other changes

This release includes router fixes for escaped colons, inline verbs and parameter storage, binding support for OpenAPI date formats, and documentation updates. Benchmark comparisons now run only for pull requests with shorter samples.

Thanks to @​Duodum, @​irisitymichaelgrundberg, @​q490107865, @​Hama1cco, @​jakezwang and @​Shubham-Padkonde for reports and contributions, and to the contributors credited in the individual commits.

Validation: upstream lint checks and race tests passed on Linux, macOS and Windows with Go 1.26 and 1.27. Local tests on patched toolchains, vet, staticcheck and govulncheck also passed; govulncheck reported no reachable vulnerabilities. The module graph still contains an advisory for the unused, unmaintained golang.org/x/crypto/openpgp package (GO-2026-5932), which Echo does not import and for which no fixed dependency version is available.

Full changelog: labstack/echo@v4.16.0...v4.16.1

v4.16.0

Security

This release fixes several security issues. Upgrading is recommended. Some fixes change behavior; read "Behavior changes to check before upgrading" below.

  • Request scheme: Context.Scheme() now uses the X-Forwarded-Proto, X-Forwarded-Protocol, X-Forwarded-Ssl and X-Url-Scheme headers only when the request comes directly from a loopback, link-local or private network address or a unix socket. Before this, any client could send X-Forwarded-Proto: https over plain HTTP and skip HTTPSRedirect. When X-Forwarded-Proto is present, only it is used (its last value), and the scheme is returned in lowercase. the new Echo#SchemeExtractor field selects the strategy: ExtractSchemeFromHeaders(...TrustOption) (default), ExtractSchemeDirect() or LegacySchemeExtractor(). The Secure middleware now sets HSTS based on Context.Scheme(). The Proxy middleware always sets X-Forwarded-Proto from Context.Scheme() and removes X-Forwarded-Ssl, X-Forwarded-Protocol and X-Url-Scheme before forwarding. GHSA-2ffq-g2xg-c22p
  • JSONP: Context.JSONP and Context.JSONPBlob accept only a callback that is empty, a JavaScript identifier or a dot-separated path of identifiers (ASCII letters, digits, _ and $). Any other callback returns a 400 Bad Request error that wraps the new ErrInvalidJSONPCallback, and nothing is written. JSONP responses now carry X-Content-Type-Options: nosniff. JSONP lets any website read the response with the user's cookies, so do not use it for data that needs authentication. GHSA-h9g5-28mm-hx3g
  • MethodOverride: a POST can no longer be overridden to GET, HEAD, OPTIONS, TRACE or CONNECT. Before this, with the MethodFromForm or MethodFromQuery getter and MethodOverride registered with Use before the CSRF middleware, _method=GET skipped the CSRF check. Register MethodOverride with Echo#Pre. GHSA-r7w9-592q-9vg4
  • Redirects: the trailing slash middlewares and the static directory redirect percent-encode control characters in the redirect path. Before this, /%09/evil.example/ redirected browsers to evil.example. GHSA-v753-g4cw-jm48
  • Static files: with the default settings, the Static middleware resolves files from the same form of the path that the router matched, so /admin%2Fsecret.txt or /%61dmin/secret.txt can no longer reach a file under a guarded /admin/* route. GHSA-375p-5qhx-8wq4 The Static middleware and StaticDirectoryHandler (used by Echo.Static, Echo.StaticFS, Group.Static and Group.StaticFS) no longer serve paths with a ., .. or empty segment, such as /assets/../admin/secret.txt, also after path unescaping. GHSA-3pmx-cf9f-34xr
  • Dependencies: update golang.org/x/text to v0.40.0 (GO-2026-5970).

Client IP address (no code change in v4)

Without Echo#IPExtractor, Context.RealIP() in v4 trusts the X-Forwarded-For and X-Real-IP headers from any client, so the rate limiter can be bypassed and the Proxy middleware forwards a spoofed X-Real-IP (GHSA-246p-cpwv-v3jq, GHSA-99jh-6h7p-pp36). Changing this default in v4 would put all clients behind a proxy into one rate-limit bucket, so v4 keeps it. Set an extractor that matches your deployment:

e.IPExtractor = echo.ExtractIPDirect()        // no proxy in front of the app
e.IPExtractor = echo.ExtractIPFromXFFHeader() // behind proxies in private networks that set X-Forwarded-For
</tr></table> 

... (truncated)

Commits
  • 600b985 chore: prepare v4.16.1 security release (#3186)
  • 3fb0ba7 Merge commit from fork
  • be08005 fix(router): grow param values for contexts created before a route with more ...
  • 320fe67 fix(bind): honor OpenAPI date, date-time and date-time-local format tags (v4)...
  • f085ffb fix(router): handle escaped colons and inline verbs in v4 (#3132)
  • 5440f99 fix(middleware): prevent BodyLimit bypass in v4 (#3131)
  • 577ba39 static: harden dot-segment check for backslashes, test non-validating custom ...
  • 5730445 docs: add Blacksmith to sponsors (#3127)
  • a7109fa docs: link the OpenTelemetry middleware at labstack/echo-otel (#3125)
  • e75c6c6 Merge pull request #3120 from labstack/chore/v4-bump-x-text
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot
dependabot Bot requested review from hisco and nadaverell as code owners October 25, 2026 07:40
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Oct 25, 2026
@cursor

cursor Bot commented Oct 25, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

nadaverell added a commit that referenced this pull request Oct 25, 2026
Batch three soaked Dependabot updates into one dependency-only change.
Echo stays on its current version because its proposed target has not
completed the required 72 hours.

## Screening and reconciliation

Screened at **2026-10-25 08:31:24 UTC**; exact 72-hour cutoff:
**2026-10-22 08:31:24 UTC**. Ages below are measured at that instant,
never from the bot PR creation dates. Go times are exact-version Go
module proxy metadata; npm time is registry publication metadata.

Fetched/reconciled again before final QA and rebased onto
`0200075dd003c2040dc554093ad04966b10d54a2`. All four open PRs were
authored by `app/dependabot`; inspected bodies, exact diffs, commits,
files, reviews/comments, and checks. No target was already landed, no
manifest baseline had drifted, and no new bot PR appeared during
reconciliation. Original PR CI jobs passed or were appropriately
skipped; CodeQL aggregate results were neutral. Bugbot comments on the
Go PRs report billing configuration preventing review, with no code
findings.

## Included

| Original PR | Dependency | Old → new | Published (UTC) | Soak age |
Risk conclusion |
|---|---|---|---|---|---|
| #2299 | undici (dev-only via jsdom 29.1.1) | 7.29.1 → 7.30.1 |
2026-10-15 14:18:31.283 | 234.215 h | Security and
lifecycle/backpressure fixes; exercise both jsdom-consuming workspace
suites. |
| #2244 | github.com/godbus/dbus/v5 | v5.2.2 → v5.2.4 | 2026-10-13
15:56:18 | 280.585 h | Decoder allocation/panic hardening,
bus-address/error fixes; Radar uses session-bus portal theme detection
on Linux. |
| #2249 | github.com/wailsapp/wails/v2 | v2.16.0 → v2.17.0 | 2026-10-18
03:52:50 | 172.643 h | Dev IPC origin/host/capability hardening and MIME
replacement; native/Windows builds and targeted upstream tests. |
| via #2249 | github.com/gabriel-vasile/mimetype | added v1.4.16;
replaces github.com/wailsapp/mimetype v1.4.1 | 2026-10-17 10:11:07 |
190.338 h | Required upstream companion replacement; review full
old-to-new MIME behavior and test Wails asset detection. |

Publication metadata: [undici
registry](https://registry.npmjs.org/undici), [D-Bus
proxy](https://proxy.golang.org/github.com/godbus/dbus/v5/@v/v5.2.4.info),
[Wails
proxy](https://proxy.golang.org/github.com/wailsapp/wails/v2/@v/v2.17.0.info),
[MIME
proxy](https://proxy.golang.org/github.com/gabriel-vasile/mimetype/@v/v1.4.16.info).
The GitHub Wails release publication is 03:53:50 UTC (one minute after
its proxy timestamp), also safely beyond 72 hours.

## Held / excluded

- **#2298 — hold for soak:** Echo v4.15.3 → v4.16.1 was published at
**2026-10-22 16:32:16 UTC**, only **63.986 hours** old at screening;
earliest eligible instant is **2026-10-25 16:32:16 UTC**. GitHub release
publication is 16:32:49 UTC, also under 72 hours. It changes
proxy/WebSocket, body capture/decompression limits, routing and scheme
handling, and requires Go 1.26; review those behavior changes and its
go-colorable companion before including it later. Its security fixes do
not override the soak gate. Leave this PR open. [Release
notes](https://github.com/labstack/echo/releases/tag/v4.16.1),
[compare](labstack/echo@v4.15.3...v4.16.1),
[proxy
metadata](https://proxy.golang.org/github.com/labstack/echo/v4/@v/v4.16.1.info).
- No risk-excluded or stale/already-landed PRs.

## Upstream review and Radar usage

- **Undici:** reviewed both
[7.30.0](https://github.com/nodejs/undici/releases/tag/v7.30.0) and
[7.30.1](https://github.com/nodejs/undici/releases/tag/v7.30.1), plus
the [complete
compare](nodejs/undici@v7.29.1...v7.30.1).
Fixes cover TLS option preservation/renegotiation, redirect-cache
separation, decompression, SRI, SSE/WebSocket bounds, cookies, and
upgrade diagnostics. No Radar direct/deep imports; only jsdom's dev
dependency resolves it, so it is outside the shipped browser runtime.
Open [macOS EINVAL report
#6075](nodejs/undici#6075) explicitly
reproduces on baseline 7.29.1; [pool validation report
#6054](nodejs/undici#6054) involves unchanged
pool dispatch/validation failure paths (pool-base.js is byte-identical
across the bump). These are inherited issues rather than newly
introduced regressions, and do not justify retaining the older
security-vulnerable dev dependency.
- **D-Bus:** reviewed
[5.2.3](https://github.com/godbus/dbus/releases/tag/v5.2.3),
[5.2.4](https://github.com/godbus/dbus/releases/tag/v5.2.4), and [full
compare](godbus/dbus@v5.2.2...v5.2.4).
Radar's Linux `theme_linux.go` connects to the session bus, reads a
portal variant, and already handles connection/property errors. No
dependency graph additions from this bump. Protocol regression tests
exercise the changed encoders/decoders.
- **Wails:** reviewed [2.17.0
notes](https://github.com/wailsapp/wails/releases/tag/v2.17.0), [full
tag
compare](wailsapp/wails@v2.16.0...v2.17.0),
and the exact v2 module source archive delta (the repository compare
also contains unrelated v3/docs work). Production IPC is not the dev IPC
transport. Radar's custom asset handler redirects to its own loopback
server, so most asset serving stays in Radar. Changes include
development IPC host/origin/token gating and reconnect-cookie refresh,
remote-template warnings, Windows WinRT-only notifications (Radar has no
notification API call sites), and macOS swallowing of unhandled
key/Escape beeps outside fullscreen. Existing full-screen escape
behavior is retained. No application migration or compatibility fallback
is needed.
- **MIME:** reviewed all intervening
[releases](https://github.com/gabriel-vasile/mimetype/releases) from
v1.4.2 through v1.4.16 and
[compare](gabriel-vasile/mimetype@v1.4.1...v1.4.16).
Detection has broader formats, updated MIME names,
bounded/pathological-input fixes, and a Go 1.24 minimum (Radar is
already Go 1.26). v1.4.16 is not retracted; its module retracts v1.4.4,
v1.4.14, and v1.4.15, all bypassed here. Wails strips UTF-8 BOMs and
explicitly tests JS/CSS/HTML/SVG/JSON/PNG MIME handling. Radar does not
use generic Office/media detection paths from the open upstream reports.
- **Run modes:** desktop dependencies affect local desktop; Undici is
test-only. Shared in-cluster authorization and Hub's embedded UI/public
APIs receive no source or wire-contract changes.

## Final graph audit

Only `go.mod`, `go.sum`, and `package-lock.json` change. Native `go
get`/`go mod tidy` and `npm update undici --package-lock-only
--ignore-scripts` produced:

- Go: Wails and D-Bus upgraded; new upstream mimetype replaces the Wails
fork. No other resolved module versions move (including Echo, gommon,
go-colorable, and golang.org/x modules).
- npm: exactly one entry changes, undici 7.29.1 → 7.30.1. No new
packages, manifest edits, or unrelated lockfile refreshes.
- Six obsolete historical go.mod-only checksum entries disappear with
the removed MIME fork; these are checksum pruning, not resolved
upgrades/removals.
- No source, generated frontend bundles, workflows, release
configuration, tags, or distribution artifacts are included. Install
used `npm ci --ignore-scripts`; candidate lifecycle scripts were never
executed.

## Review triage

Independent cross-model review of
`9ddca269f717501e4aa8fd7e1c8cb4982dbcec08` found no blocking defect in
the dependency graph. Its verification-gap finding was based on reading
still-running logs; completion and exact results are reported below.
Platform build coverage is explicitly listed. Existing release workflow
`@latest` CLI installs and the Linux theme portal property call were
verified as pre-existing follow-ups; neither is changed in this
dependency-only batch. The portal's [Settings
API](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Settings.html)
exposes color-scheme via Read/ReadOne rather than the Properties.Get
call currently used by Radar, so protocol tests and compile coverage are
the evidence here, not a claim of live portal theme detection.

Qodo also completed its automated review of
`9ddca269f717501e4aa8fd7e1c8cb4982dbcec08`: zero bugs, rule violations
or requirement gaps; no inline findings.

## Verification

The exact reviewed/pushed head is
`9ddca269f717501e4aa8fd7e1c8cb4982dbcec08`.

- `make tsc`: passed locally on Node 24.14.1.
- `make build`: passed locally (frontend → embed → Go binary).
- `go mod verify`: all modules verified.
- Native macOS production desktop: `make desktop-binary GOFLAGS=-p=2`
passed; `./radar-desktop --version` prints `v1.18.1-7-g9ddca269f`.
AppKit emits an existing `setShowsBaselineSeparator` deprecation
warning.
- Windows amd64 production desktop: `GOOS=windows GOARCH=amd64
CGO_ENABLED=0 GOFLAGS=-p=2 go build -tags production ... ./cmd/desktop`
passed. Binary module metadata confirms Wails v2.17.0 and upstream
mimetype v1.4.16; Radar's D-Bus integration is Linux-only.
- Linux: Radar's standalone theme file compiles for linux/amd64;
upstream D-Bus protocol tests execute successfully in a read-only,
network-disabled linux/arm64 container. Full GTK/WebKit desktop linking
was not run; the Wails v2 Linux native frontend is unchanged in the
reviewed source delta.
- Targeted upstream checks passed: Wails asset-server MIME regression
cases and IPC token tests; Wails development
host/origin/cookie/auth/reconnect tests; D-Bus encoding, decoding,
length/panic handling, message validation and bus-address tests.
- `git diff --check`: passed; final worktree clean. Only the three
dependency files are committed.

All relevant [CI
jobs](https://github.com/skyhook-io/radar/actions/runs/40179063038)
passed:

| Check | Result |
|---|---|
| Backend (all packages except server) | passed |
| Backend (internal/server) | passed |
| Frontend | 294 files, 2,965 tests passed |
| Shared k8s-ui | 307 files, 5,147 tests passed; 1 pre-existing skip |
| Settings browser journeys | 142 passed |
| Helm refresh on Windows | passed |
| CodeQL JavaScript/TypeScript analysis | passed (aggregate CodeQL
result neutral) |

Local test caveats, kept explicit:
- The initial local `make test` failed deadline-sensitive tests in MCP,
server large-metrics and upgrade response bounding while the shared host
was under severe build/test contention. Local frontend runs likewise hit
timing failures; an isolated failing What’s New case passed. The bounded
local retries were interrupted to stop consuming the overloaded host
after the **same head's full CI suites passed**. No tests or timeouts
were changed and no source workaround was added. The passing Backend +
server CI jobs collectively exercise the root Go suite, including those
deadline tests.
- `npm ci --ignore-scripts` succeeds and `npm ls undici --all` resolves
7.30.1 correctly. `npm ls --all` exits 1 because the existing root
DOMPurify 3.4.17 security override conflicts with Monaco 0.57.0's exact
3.4.15 declaration. Both values and the override are identical on the
base.
- Wails devserver's upstream test command triggers Go vet's
nonconstant-format check at six `Logger.Error(err.Error())` calls. All
six are unchanged from v2.16.0. The actual dev IPC behavior tests pass
with `go test -tags dev -vet=off
github.com/wailsapp/wails/v2/internal/frontend/devserver -count=1`.
Radar's normal Go tests and CI keep vet enabled.

## Native macOS GUI smoke

Rebuilt the same head with `make desktop GOFLAGS=-p=2`, then drove its
actual Wails/AppKit/WKWebView application through native accessibility
and keyboard input. This exercised the production localhost redirect,
rather than substituting a browser tab. Used an isolated kubeconfig and
a disposable `kind-radar-deps-smoke` cluster with a running nginx
Deployment, Service and ConfigMap.

Passed:
- Native startup, exact version `v1.18.1-7-g9ddca269f`, connection to
the test cluster, live counts, fonts, icons and resource detail drawers.
- Native About dialog; fullscreen entry and Escape exit; Cmd+R reload
and reconnection; Cmd+, Settings open/close; Cmd+[ / Cmd+] navigation.
- Copy a ConfigMap value into Search; native Cmd+A / Cmd+X / Cmd+V
roundtrip; paste into Monaco, find the inserted marker, copy the virtual
editor selection back into Search, and cancel the draft without applying
it.
- Home, resource browsing, topology (25 resources / 15 edges), Cmd+K
global search, Pod details and YAML/schema editor rendering; dark/light
themes.
- Pod logs render in the native pane. Reconnected the stream, generated
a new nginx request from the fixture pod, and visually verified its new
access/error records and updated counters.
- Cmd+Q quits the app and stops its loopback server. Removed the
temporary cluster and verified all three snapshotted Radar settings/port
files exactly match their original bytes; the user's kube context was
unchanged.

**Observed caveat:** an idle log stream disconnected after approximately
61 seconds. Existing records remained readable and manual Stream
reconnection received new records correctly. The cause and baseline
behavior were not established; this smoke test does not claim
idle-stream endurance or attribute the disconnect to the dependency
bump.

**visual-test: native desktop smoke ran** — 8 screenshots captured
locally in `/private/tmp/radar-dependabot-audit-2026-10-25/mac-smoke`.
The separate Playwright `/visual-test` workflow was skipped because this
pass explicitly targeted the native desktop. Screenshots and local logs
are retained; no test assets or generated binaries are committed.

Supersedes #2299, #2244, #2249.
@nadaverell
nadaverell merged commit e2459af into main Oct 27, 2026
12 checks passed
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.

1 participant