Skip to content

fix(deps): bump go to 1.26.4 and go-git to v5.19.1 [security]#32

Open
Tongcaiyun wants to merge 1 commit into
AlaudaDevops:alauda-v4.3.3from
Tongcaiyun:fix/go1.26.4-go-git-5.19.1
Open

fix(deps): bump go to 1.26.4 and go-git to v5.19.1 [security]#32
Tongcaiyun wants to merge 1 commit into
AlaudaDevops:alauda-v4.3.3from
Tongcaiyun:fix/go1.26.4-go-git-5.19.1

Conversation

@Tongcaiyun

Copy link
Copy Markdown

Why

The gomplate binary built from this fork is baked into the GitLab CNG gitlab-base image (via gitlab-binary). Its compiled stdlib and go-git versions therefore surface in image vulnerability scans of gitlab-base, certificates, gitaly, gitlab-shell, cfssl-self-sign.

At the current latest release v4.3.4-alauda-31, this module is go 1.26.3 + go-git/go-git v5.19.0, which keeps the GitLab bundle scan reporting (PkgPath=null, i.e. compiled into the gomplate binary):

CVE Pkg Installed Fixed
CVE-2026-27145 / CVE-2026-42504 / CVE-2026-42507 stdlib 1.26.3 1.26.4
CVE-2026-45570 / CVE-2026-45571 / GHSA-w5pp-99ch-qj29 go-git/go-git/v5 5.19.0 5.19.1

These are the only findings left unaddressed after the gitlab-chart vuln fix; they cannot be fixed chart-side because they live in this prebuilt binary.

What

  • go directive 1.26.31.26.4 (forces the build toolchain to >= 1.26.4 under GOTOOLCHAIN=auto, clearing the stdlib CVEs).
  • go-git/go-git/v5 v5.19.0v5.19.1 (clears the go-git CVEs). go-billy is already at the fixed v5.9.0.

go mod tidy and go mod verify pass locally; diff is go.mod + go.sum only.

Follow-up (not in this PR)

After this merges and a new release (e.g. v4.3.4-alauda-32) is cut, gitlab-chart must bump GOMPLATE_VERSION in modules/dependencies/Containerfile.binary to that tag and rebuild so the new binary lands in gitlab-base.

🤖 Generated with Claude Code

The gomplate binary is baked into the GitLab CNG gitlab-base image
(via gitlab-binary), so its compiled stdlib and go-git versions surface
in image scans for gitlab-base/certificates/gitaly/gitlab-shell/cfssl.

At v4.3.4-alauda-31 this module is go 1.26.3 + go-git v5.19.0, which keeps
reporting:
- stdlib: CVE-2026-27145, CVE-2026-42504, CVE-2026-42507 (fixed in 1.26.4)
- go-git: CVE-2026-45570/45571, GHSA-w5pp-99ch-qj29 (fixed in v5.19.1)

Bump the go directive to 1.26.4 (forces the build toolchain up under
GOTOOLCHAIN=auto) and go-git to v5.19.1. go mod tidy + go mod verify pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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