Repository navigation
build(deps): Bump github.com/prometheus/client_golang from 1.23.2 to 1.24.1 - #1398
Conversation
8fc66f5 to
817ae46
Compare
Dependency Security Review —
|
| Module | From → To | Notes |
|---|---|---|
github.com/prometheus/common |
0.69.0 → 0.70.1 | Small; route QUERY method, TLSVersion.String() pointer-address fix |
github.com/prometheus/procfs |
0.19.2 → 0.21.1 | Routine |
github.com/klauspost/compress |
1.18.6 → 1.19.1 | Security fix (below) |
golang.org/x/crypto |
0.53.0 → 0.54.0 | Routine |
golang.org/x/net |
0.56.0 → 0.57.0 | Routine |
golang.org/x/sync |
0.21.0 → 0.22.0 | Routine |
golang.org/x/sys |
0.46.0 → 0.47.0 | Routine |
golang.org/x/term |
0.44.0 → 0.45.0 | Routine |
golang.org/x/text |
0.38.0 → 0.40.0 | Security fix (below) |
golang.org/x/tools |
0.46.0 → 0.47.0 | Toolchain only |
Go version: client_golang now requires Go ≥ 1.25. Tenderdash is on go 1.26.4 across go.mod and all CI workflows — no action needed.
Diff Integrity
Clean — no discrepancies.
- Tag/commit integrity:
v1.24.1→d6087ee482e06716ee21dc03819432d5d40f72db, exactly the commit referenced in the release notes and the Dependabot PR body.v1.23.2→8179a560…,v1.24.0→48dd383f…. - Cryptographic verification:
go mod verify→ all modules verified (go.sum + checksum DB). - Install/build hooks: Go has no install-time hook mechanism, so upstream CI/build files never execute on our side. Reviewed anyway:
.github/workflows/*changes are standardprombotrepo-sync from prometheus/prometheus (newvalidate.yml,test.yml,govulncheck.yml,approve-workflows.yml), all actions pinned by SHA,approve-workflowsgated ongithub.repository_owner == 'prometheus'.update-go-version.bashchanges are asupported_go_versions.txt→.jsonformat migration — no new network calls beyond the pre-existingcurl https://go.dev/VERSION. - No obfuscation, no base64/hex blobs, no new outbound network calls or credential/env reads in
prometheus/,prometheus/promhttp/, orprometheus/collectors/. - Diff shape matches the changelog; the large diff is explained by the v1.24.0 minor release plus
interface{}→anymechanical churn.
Known Vulnerabilities
| Advisory | Package | Status in this PR |
|---|---|---|
GO-2026-5841 / GHSA-259r-337f-4rfw — OOB read in compress/s2 (crafted dictionary to s2.NewDict) |
klauspost/compress <1.18.7 |
FIXED — 1.18.6 (vulnerable) → 1.19.1. compress/s2 is in our import graph (kvstore → cometbft-db → badger/v4/table), though badger does not expose dictionary construction to untrusted input. Net improvement. |
GO-2026-5970 / CVE-2026-56852 — infinite loop in x/text/unicode/norm on invalid UTF-8 |
x/text <0.39.0 |
FIXED — 0.38.0 (vulnerable) → 0.40.0. unicode/norm is in our graph (viper → afero). Net improvement. |
GO-2026-5932 — x/crypto/openpgp unmaintained/unsafe |
x/crypto (all versions) |
Not applicable — go mod why confirms "main module does not need package golang.org/x/crypto/openpgp". Present before and after; not a regression. |
| CVE-2022-21698 (promhttp unbounded method cardinality) | client_golang <1.11.1 |
Not applicable — long fixed. |
client_golang 1.23.2 and 1.24.1 both have zero open OSV advisories. No commonly-confused packages encountered. CI govulncheck on this PR passes.
Library Audit Findings
| Severity | Finding | Location | CWE |
|---|---|---|---|
| LOW | Collector panics now leak a 64 KB goroutine stack trace over HTTP. safeCollect recovers collector panics and embeds runtime.Stack(buf[:64KB]) in the returned error. With default ErrorHandling = HTTPErrorOnError, httpError writes err.Error() verbatim into the HTTP 500 body — exposing package paths, goroutine state, memory addresses to any client reaching /metrics. Requires a collector to actually panic (not attacker-triggerable in our collectors). Net verdict still positive: prior behavior was an unrecovered panic crashing the whole node process — a real availability win for a consensus node. |
prometheus/registry.go (safeCollect), prometheus/promhttp/http.go:631 |
CWE-209 / CWE-497 |
| LOW | New always-on name[] query-parameter metric filter. HandlerFor now unconditionally parses req.URL.Query()["name[]"] and builds a filter map sized to the parameter count. Not opt-in — silently changes /metrics behavior for every consumer. Allocation bounded by http.Server.MaxHeaderBytes (1 MB default → few MB transient worst case), further bounded by our MaxRequestsInFlight. No new data exposed (filtering only returns a subset). |
prometheus/promhttp/http.go:372-395 |
CWE-400 (bounded) |
| INFO | CoalesceGather (new, experimental, opt-in) shares one metric snapshot across concurrent scrapers. Carefully written — refcounted cycle, slices.Clone per caller, explicit panic guard, documented happens-before ordering. We do not enable it; code path is inert. |
prometheus/promhttp/http.go:83-190 |
— |
| INFO | Name validation moved from deprecated model.NameValidationScheme global to unconditional model.UTF8Validation. Strictly more permissive at construction. No injection path: our names are static generated snake_case identifiers, and expfmt quotes/escapes UTF-8 names regardless. |
prometheus/desc.go, prometheus/labels.go:187 |
— |
| INFO | InstrumentHandlerDuration/Counter exemplar handling switched to a safe type cast (no longer panics on non-ExemplarObserver). We don't use these helpers. |
prometheus/promhttp/instrument_server.go |
— |
| INFO | WriteToTextfile now closes its temp file on error paths (fd-leak fix). Not used by us. |
prometheus/registry.go:641 |
CWE-772 |
Codebase Compliance
Our surface area is small: metrics registration via metricsgen-generated files (9 packages) wrapping go-kit/metrics/prometheus, plus two promhttp handler sites.
| Recommendation | Status | Action Needed? |
|---|---|---|
Not using removed/changed api/prometheus/v1 APIs (Rules, LabelNames) |
Compliant — never imported | No |
Not using changed exp/api/remote APIs |
Compliant — never imported | No |
Not relying on model.NameValidationScheme = LegacyValidation |
Compliant — zero references repo-wide | No |
| Go toolchain ≥ 1.25 | Compliant — go 1.26.4, all CI pinned to 1.26.4 |
No |
| Metric names/labels from trusted sources | Compliant — all names compile-time constants in generated code; label values come from node config and were never legacy-validated either | No |
/metrics errors not exposed to untrusted clients |
Partial — Prometheus defaults to false, but when enabled PrometheusListenAddr defaults to ":26660", i.e. all interfaces. Pre-existing exposure, mildly worsened by the stack-trace change. |
Optional — see rec. #2 |
MaxRequestsInFlight configured |
Compliant — node/setup.go:629 sets it from cfg.MaxOpenConnections (default 3). cmd/priv_val_server/main.go:165 uses empty HandlerOpts{} (unlimited) but binds a local operator-only port. |
No — see rec. #3 |
| Build/compile against new version | Verified — CI Build (amd64, linux), tests (00-05), golangci-lint, govulncheck, e2e-test (dashcore) all passed on the pre-rebase head |
No |
Risk Assessment
Overall: Low Risk — approve and merge.
- Diff integrity clean and cryptographically verified; nothing to escalate on supply-chain grounds.
- Update is net security-positive: closes two real, in-graph advisories (
compress/s2OOB read,x/textnorm infinite loop) thatv1.6-devcarries today. - Also net availability-positive for a validator: collector panics no longer take down the process.
- Both LOW findings are non-attacker-triggerable in our configuration and inherent to upstream, not to how we use it.
- CVE registration discipline:
client_golanghas aSECURITY.md, documented disclosure via the Prometheus security team, and a history of properly registered CVEs/GHSAs. OSV/GHSA coverage is good — automated scanning is not blind here.
Recommendations
- Merge once CI goes green. No blocking issues.
- (Optional hardening, pre-existing — not introduced by this PR.) Consider changing
DefaultInstrumentationConfig().PrometheusListenAddrinconfig/config.go:1305from":26660"to"127.0.0.1:26660"./metricsbinds to all interfaces by default and this PR makes a 500 response marginally more informative. Only reachable wheninstrumentation.prometheus = true. Separate PR. - (Optional, minor.)
cmd/priv_val_server/main.go:165passes an emptypromhttp.HandlerOpts{}— noMaxRequestsInFlightcap, unlikenode/setup.go. Low priority, worth aligning for consistency. - Be aware of the
name[]behavior change./metricsnow honors?name[]=<metric>filtering unconditionally. Any dashboard, alerting rule, or scrape config passing aname[]param today will start receiving a filtered subset. Worth checking scrape configs before rolling to production. - Long-term: no migration concerns.
client_golangis actively maintained with a healthy security posture; keep tracking minor releases via Dependabot.
🤖 Co-authored by Claudius the Magnificent AI Agent
Review Addendum — deep-dive pass completeMy earlier comment was an interim report filed before the supplementary deep-dive audit returned. That audit is now complete and its findings are consolidated here. Verdict is unchanged: ✅ OK-to-merge, Low Risk. No new blocking issues — the changes are re-ratings and added verification depth. Final tally: 0 CRITICAL, 0 HIGH, 2 MEDIUM, 1 LOW, 4 INFO — with both MEDIUMs assessed as not exploitable in our configuration. Changed severities
New finding — SEC-002 (
|
|
|
@dependabot rebase |
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.23.2 to 1.24.1. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/v1.24.1/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.23.2...v1.24.1) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-version: 1.24.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
817ae46 to
593ef2a
Compare
🛑 Merge on hold — do not land yet (queueing behind #1385)Rebase succeeded: head is now Please do not merge this PR yet, even once it is fully green. #1385 carries the fix for CVE-2026-39821 (CVSS 9.6) in Ordering: #1385 lands first, then this one. Nothing is wrong with #1398 — the security review is complete and the verdict stands at OK-to-merge, Low Risk (see the review and addendum). It is being held purely for merge-ordering reasons, to stop a CVSS-9.6 fix from being starved by dependency churn. This PR will be kept rebased and green so it can merge immediately once #1385 is in. 🤖 Co-authored by Claudius the Magnificent AI Agent |
Bumps github.com/prometheus/client_golang from 1.23.2 to 1.24.1.
Release notes
Sourced from github.com/prometheus/client_golang's releases.
... (truncated)
Changelog
Sourced from github.com/prometheus/client_golang's changelog.
Commits
d6087eerelease: cut v1.24.1 (#2076)48dd383Cut v1.24.0 (#2061)a725305Cut v1.24.0-rc.0 (#2058)77c584fbuild(deps): update all Go dependencies in all go.mod files (#2059)78262a7feat(promhttp): add CoalesceGather option to deduplicate concurrent Gather ca...34e9a7fMerge pull request #2055 from prombot/repo_sync43749bcUpdate common Prometheus filesde19217examples: improve simple main.go example (#1999)20355ebfix: correct typos in comments and test error messages (#2049)4cd2d3atest: fix two flaky tests (darwin start_time regex, memstats HeapReleased dri...