Skip to content

fix(deps): patch CVEs baked into the dockerfmt release binary - #58

Open
gw0 wants to merge 2 commits into
reteps:mainfrom
gw0:gw0/bump-dependencies-fix-cve
Open

gw0 wants to merge 2 commits into
reteps:mainfrom
gw0:gw0/bump-dependencies-fix-cve

Conversation

@gw0

@gw0 gw0 commented Sep 23, 2026

Copy link
Copy Markdown

Summary

  • Bump github.com/moby/buildkit (v0.20.2 → v0.33.0) and golang.org/x/mod (v0.31.0 → v0.41.0), and run go mod tidy to drop stale golang.org/x/net go.sum entries that were never actually linked into the binary (go.mod-only hashes, no content hash) — these were showing up as false-positive Trivy findings.
  • Bump Go toolchain in CI/release from 1.24.x to 1.26.x to match the new go.mod minimum (buildkit v0.33.0 requires Go ≥1.26.3) and pick up current stdlib CVE patches.

Downstream consumers maintain a Trivy suppression list for CVEs baked into prebuilt dockerfmt binaries (e.g. https://github.com/gw0/docker-claude-code/blob/main/.trivyignore.yaml). This fixes the root cause upstream instead of relying on per-consumer suppressions.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... (135 tests pass)

gw0 added 2 commits September 23, 2026 07:07
Also drops stale golang.org/x/net go.sum entries that were never
actually linked into the binary (go.mod-only hashes, no content
hash), which Trivy was flagging as a false positive.
go.mod now requires go >= 1.26.3 after the buildkit bump; match it
in CI/release so builds use a Go version with current stdlib CVE
patches instead of drifting behind on whatever was current at the
last release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant