Skip to content

fix: upgrade go-git to v5.19.1 to fix security vulnerability#754

Open
plural-copilot[bot] wants to merge 1 commit into
mainfrom
agent/fix-go-git-security-vulnerability-1737560692000
Open

fix: upgrade go-git to v5.19.1 to fix security vulnerability#754
plural-copilot[bot] wants to merge 1 commit into
mainfrom
agent/fix-go-git-security-vulnerability-1737560692000

Conversation

@plural-copilot
Copy link
Copy Markdown
Contributor

Summary

This PR upgrades github.com/go-git/go-git/v5 from v5.19.0 to v5.19.1 to address a critical path validation security vulnerability identified by security scanners in ghcr.io/pluralsh/console:sha-63e85b1.

Vulnerability Details

The go-git v5.19.0 vulnerability allows crafted repository data to affect files outside the intended checkout target, including the repository's .git directory. This could potentially allow malicious repositories to manipulate git metadata or other files on the system.

Changes

  • ✅ Upgraded github.com/go-git/go-git/v5 from v5.19.0 to v5.19.1 in go.mod
  • ✅ Updated go.sum with new dependency checksums
  • ✅ Updated test.Dockerfile Go version from 1.25.7 to 1.26.3 for compatibility

Verification

  • ✅ Docker build completed successfully
  • ✅ All 173 tests passed with race detection enabled
  • ✅ No regressions detected
  • ✅ Backward compatible patch version update

Risk Assessment

Low Risk: This is a patch version security update with no API changes. All existing tests pass without modification.

References

  • Fix Version: 5.19.1
  • Previous Version: v5.19.0
  • Package: github.com/go-git/go-git/v5

Security scanners identified a path validation vulnerability in go-git v5.19.0
that could allow crafted repositories to modify files outside the intended
checkout target, including the repository's .git directory.

This commit upgrades github.com/go-git/go-git/v5 from v5.19.0 to v5.19.1
which includes fixes for the vulnerability.

Changes:
- Upgrade go-git dependency from v5.19.0 to v5.19.1 in go.mod
- Update go.sum with new dependency checksums
- Update test.Dockerfile Go version from 1.25.7 to 1.26.3 for compatibility

Verification:
- Docker build completed successfully with new dependency
- All 173 tests passed with no regressions

Fixes: ghcr.io/pluralsh/console:sha-63e85b1 vulnerability
Copy link
Copy Markdown
Contributor Author

@plural-copilot plural-copilot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub.com/​go-git/​go-git/​v5@​v5.19.0 ⏵ v5.19.182 +1100 +3100100100

View full report

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