fix: upgrade go-git to patched releases for GHSA-hc8v-wwc9-vgxm
Closed
CH
2mo ago+6+6+0123456789-2-2-0123456789
Summary
Updated the pinned go-git dependencies to the first patched releases that address the symlink-following worktree advisory. This keeps the change limited to the Go module manifest and lockfile.
Vulnerability Fixed
GHSA-hc8v-wwc9-vgxm (HIGH): go-git worktree operations may follow symlinks outside the intended worktree boundary.
Changes Made
- Bumped
github.com/go-git/go-git/v6fromv6.0.0-alpha.4tov6.0.0-alpha.5ingo.mod, matching the first patched v6 release. - Refreshed the indirect
github.com/go-git/go-git/v5entry fromv5.19.1tov5.19.2ingo.mod, matching the patched v5 line referenced by the assessment. - Updated
go.sumwith checksums for the patched module versions.
Verification
Ran syft dir:. -o cyclonedx-json=sbom.json && grype sbom:sbom.json --only-fixed -o json against the patched repository SBOM. Outcome: resolved — grype no longer reports GHSA-hc8v-wwc9-vgxm for the scanned source tree.