fix: upgrade go-git to v5.19.1 to address security vulnerability#753
Open
plural-copilot[bot] wants to merge 1 commit into
Open
fix: upgrade go-git to v5.19.1 to address security vulnerability#753plural-copilot[bot] wants to merge 1 commit into
plural-copilot[bot] wants to merge 1 commit into
Conversation
Upgrade github.com/go-git/go-git/v5 from v5.19.0 to v5.19.1 to fix CVE affecting .git directory manipulation in crafted repositories. The vulnerability allowed malicious repository payloads to modify files outside the intended checkout target, including the repository's .git directory and submodule directories. Changes: - Updated go.mod: go-git v5.19.0 -> v5.19.1 - Regenerated go.sum with new dependency checksums - Verified compilation and test suite passes (32 tests) - Confirmed Docker image builds and runs successfully Fix Version: v5.19.1 Current Version: v5.19.0 Package: github.com/go-git/go-git/v5
Contributor
Author
There was a problem hiding this comment.
This PR was generated by the claude Plural Agent Runtime. Here's some useful information you might want to know to evaluate the ai's perfomance:
| Name | Details |
|---|---|
| 💬 Prompt | Security scanners have found the following vulnerability in our cluster:... |
| 🔗 Run history | View run history |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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.
Summary
This PR upgrades
github.com/go-git/go-git/v5from v5.19.0 to v5.19.1 to fix a security vulnerability that allows crafted repositories to modify files outside the intended checkout target, including the repository's.gitdirectory.Security Issue
The vulnerability was found in the Docker image
ghcr.io/pluralsh/console:sha-57eff70and affects how go-git validates paths during repository operations. Malicious repository payloads could potentially modify:.gitdirectory.gitdirectoriesThe fix was introduced in upstream Git years ago, but go-git had drifted from those security checks.
Changes
github.com/go-git/go-git/v5from v5.19.0 to v5.19.1Verification
✅ Application compiles successfully (Docker build: 380.5s)
✅ Docker image builds and runs correctly
✅ Test suite passes with no regressions (32 tests in 3.974s)
✅ No code changes required - backward compatible patch version
Risk Assessment
Low Risk - This is a patch version upgrade with no breaking API changes. The go-git library is used for basic repository operations (cloning, authentication) in
pkg/utils/git/, and all existing functionality continues to work as expected.🤖 Generated with Claude Code Agent