security: clear all 194 Dependabot alerts, fix CI scanner failures, pin Go 1.26.5 - #56
Merged
Merged
Conversation
…ot alerts
Clears all 194 open Dependabot alerts on main. The alert count is inflated
because GitHub opens one alert per advisory x manifest; they collapse to
three packages replicated across 18 Go modules.
golang.org/x/crypto v0.45-v0.51 -> v0.52.0 (13 modules)
google.golang.org/grpc v1.80.0 -> v1.82.1 (14 modules)
go.mongodb.org/mongo-driver v1.13.1-1.17.6 -> v1.17.7 (11 modules)
Severity cleared: 91 critical, 40 high, 63 medium.
No Go source changes were required. The mongo-driver v1.13/v1.14 -> v1.17
jump needed no API adaptation in any module. go build, go vet, and go test
pass across all 22 buildable modules; govulncheck confirms zero remaining
findings for these three packages.
Not addressed here (pre-existing, surfaced by govulncheck, tracked separately):
- golang.org/x/text v0.37.0 -> v0.39.0 (GO-2026-5970, reachable via
mongo.Connect -> norm.Form.String)
- go.opentelemetry.io/otel v1.43.0 -> v1.44.0 (GO-2026-5158)
- Go toolchain go1.26.4 -> go1.26.5 (GO-2026-5856, stdlib crypto/tls)
- AP2/ is a git submodule pinned to upstream; its go.mod is unpatched here
parlakisik
force-pushed
the
security/bump-crypto-grpc-mongo-driver
branch
from
August 4, 2026 00:01
cbb6324 to
acf5cdf
Compare
…ubmodule Follow-up to the x/crypto, grpc, and mongo-driver bump. Clears the govulncheck and Trivy failures that were red on main before this branch. Dependency bumps: golang.org/x/text v0.37.0 -> v0.39.0 GO-2026-5970 / CVE-2026-56852 go.opentelemetry.io/otel v1.43.0 -> v1.44.0 GO-2026-5158 go.opentelemetry.io/otel v1.24.0 -> v1.44.0 (internal/httpclient) golang.org/x/net v0.55.0 -> v0.56.0 GO-2026-5942 github.com/klauspost/compress v1.16.7/v1.17.2 -> v1.18.7 GO-2026-5841 GO-2026-5970 was the only Trivy finding (HIGH) and, with GO-2026-5158, the only govulncheck finding. x/net and klauspost/compress were unreachable but have published fixes, so Trivy would flag them once its DB caught up. Go toolchain pinned to go1.26.5 (GO-2026-5856, stdlib crypto/tls): - toolchain directive added to 23 go.mod files - 13 Dockerfiles: golang:1.26-alpine -> golang:1.26.5-alpine - ci.yml and security.yml: GO_VERSION 1.26 -> 1.26.5 The go directives are left alone; unifying them is a separate compatibility decision. AP2 submodule: - pointer advanced eb2684d -> e1ea56d (v0.2.0-4-ge1ea56d) - .gitmodules added; it was missing, so every CI job failed cleanup with "fatal: No url found for submodule path 'AP2' in .gitmodules" - dropped the contradictory AP2/ line from .gitignore Note: upstream has NOT patched AP2's own Go deps. At both the old and new pins they are x/crypto v0.43.0, grpc v1.76.0, otel v1.37.0, x/text v0.30.0. Fixing those requires a PR to google-agentic-commerce/AP2. No Go source changes were required; semconv/v1.24.0 still exists in otel v1.44.0. go build, go vet, and go test pass in all 23 modules under go1.26.5, and govulncheck reports "No vulnerabilities found" repo-wide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clears all 194 open Dependabot alerts on
main, plus thegovulncheckand Trivy failures that were already red onmainbefore this branch.Commit 1 — the Dependabot alerts
The alert count is inflated because GitHub opens one alert per advisory × manifest; they collapse to three packages across 18 Go modules.
golang.org/x/cryptogoogle.golang.org/grpcgo.mongodb.org/mongo-driverSeverity cleared: 91 critical, 40 high, 63 medium.
Commit 2 — the CI scanner failures
govulncheckand Trivy were failing on every recentmainrun, includingd473635, the commit this branch forked from. Those failures were not introduced here —mainalready carriedx/text v0.37.0andotel v1.43.0.golang.org/x/textmongo.Connect→norm.Form.Stringgo.opentelemetry.io/otelgo.opentelemetry.io/otelinternal/httpclientgolang.org/x/netgithub.qkg1.top/klauspost/compressx/net and klauspost/compress were unreachable, so
govulnchecktolerated them — but both have published fixes, and Trivy runsignore-unfixed: truewithseverity: CRITICAL,HIGH, so they would fail the build once its DB caught up. Bumped pre-emptively.Go toolchain → go1.26.5
GO-2026-5856 (stdlib
crypto/tls, ECH privacy leak) is fixed by the toolchain, not ago.modedit:toolchain go1.26.5added to 23go.modfilesgolang:1.26-alpine→golang:1.26.5-alpineci.yml+security.yml:GO_VERSION'1.26'→'1.26.5'The
godirectives (a spread of 1.22 / 1.24.0 / 1.25.0) are deliberately left alone — unifying them drops support for older toolchains and is a separate compatibility decision.AP2 submodule
eb2684d→e1ea56d(v0.2.0-4-ge1ea56d).gitmodulesadded. It was missing entirely, so every CI job failed cleanup withfatal: No url found for submodule path 'AP2' in .gitmodulesAP2/line from.gitignorex/crypto v0.43.0,grpc v1.76.0,otel v1.37.0,x/text v0.30.0. The 9 upstream commits are docs, the v0.2.0 release, and a path move with0 insertions(+), 0 deletions(-)to the go.mod. Fixing them requires a PR togoogle-agentic-commerce/AP2. Note this was never contributing to the alert count — Dependabot does not scan submodule contents.Verification
semconv/v1.24.0still exists in otel v1.44.0, and the mongo-driver v1.13/v1.14 → v1.17 jump needed no API adaptation.go build ./...,go vet ./...,go test -count=1 ./...— pass in all 23 modules under go1.26.5govulncheck— "No vulnerabilities found" inaex-gateway,aex-settlement,aex-work-publisher, andinternal/testutil, scanning against the go1.26.5 standard libraryKnown residual
golang.org/x/crypto v0.52.0carries GO-2026-5932 with no published fix (Fixed in: N/A). It is unreachable, and Trivy'signore-unfixed: trueskips it. Nothing to do until upstream ships a patch.