Skip to content

fix(deps): update module github.com/go-git/go-git/v6 to v6.0.0-alpha.2 [security] - autoclosed#172

Closed
qubesome-renovate[bot] wants to merge 1 commit intomainfrom
renovate/go-github.com-go-git-go-git-v6-vulnerability
Closed

fix(deps): update module github.com/go-git/go-git/v6 to v6.0.0-alpha.2 [security] - autoclosed#172
qubesome-renovate[bot] wants to merge 1 commit intomainfrom
renovate/go-github.com-go-git-go-git-v6-vulnerability

Conversation

@qubesome-renovate
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/go-git/go-git/v6 v6.0.0-alpha.1v6.0.0-alpha.2 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

GHSA-3xc5-wrhm-f963

Impact

go-git may leak HTTP authentication credentials when following redirects during smart-HTTP clone and fetch operations.

If a remote repository responds to the initial /info/refs request with a redirect to a different host, go-git updates the session endpoint to the redirected location and reuses the original authentication for subsequent requests. This can result in the credentials (e.g. Authorization headers) being sent to an unintended host.

An attacker controlling or influencing the redirect target can capture these credentials and potentially reuse them to access the victim’s repositories or other resources, depending on the scope of the credential.

Clients using go-git exclusively with trusted remotes (for example, GitHub or GitLab), and over a secure HTTPS connection, are not affected by this issue. The risk arises when interacting with untrusted or misconfigured Git servers, or when using unsecured HTTP connections, which is not recommended. Such configurations also expose clients to a broader class of security risks beyond this issue, including credential interception and tampering of repository data.

Patches

Users should upgrade to v5.18.0, or v6.0.0-alpha.2, in order to mitigate this vulnerability. Versions prior to v5 are likely to be affected, users are recommended to upgrade to a supported go-git version.

The patched versions add support for configuring followRedirects. In line with upstream behaviour, the default is now initial, while users can opt into FollowRedirects or NoFollowRedirects programmatically.

Credit

Thanks to the 3 separate reports from @​celinke97, @​N0zoM1z0 and @​AyushParkara. Thanks for finding and reporting this issue privately to the go-git project. 🙇


Release Notes

go-git/go-git (github.com/go-git/go-git/v6)

v6.0.0-alpha.2

Compare Source

🚀 Release Summary

⚠️ v6 Alpha Release

This is an alpha release of go-git v6.

We encourage users to test this version in real-world scenarios and help us validate the new transport layer and features.

👉 Please report any issues, bugs, or unexpected behavior via GitHub issues.

This release brings major improvements across transport, performance, and Git feature support, along with significant internal modernization.

🚀 Highlights
  • Major refactor of the plumbing/transport API with a new design, improving extensibility and aligning behaviour more closely with upstream Git.
  • Performance improvements in remote operations, including faster send-pack.
  • Significant improvements to HTTP transport robustness and protocol correctness.
  • File transport: added support for gitfile and improved repository detection logic.
🐛 Bug Fixes
  • repository: fix DeleteBranch failing when using full ref names (#​1951)
  • worktree: fix Add silently failing for absolute paths (#​1949)
  • transport/http: fix multi-round pack negotiation (#​1992)
  • transport/http: harden redirect handling to match canonical Git (#​1997)
  • transport/http: fix data race in dumb HTTP test server (#​1960)
  • transport: avoid emitting duplicate NAK after empty ACKs (#​1989)
  • updreq: support multiple shallow records in upload request decoding (#​1952)
  • file transport: fix Windows file handle leak (#​1976)
  • worktree tests: fix Windows file handle leaks (#​1996)
  • transport tests: correct receive-pack usage (#​1988)
✨ Enhancements
  • remote: faster send-pack implementation (#​1947)
  • object: improved object walk painting (#​1973)
  • repository: add gitfile support and improve loader detection (#​1994)
  • config: introduce ConfigLoader plugins aligned with upstream Git (#​1924)
🔧 Refactoring
  • plumbing/transport: replace transport API with new design (#​1972)
  • plumbing/transport: follow-up API refactoring and cleanup (#​1983)
📚 Documentation
  • docs: updates and introduction of AI Policy (#​1913)

📋 Full Changelog

What's Changed
New Contributors

Full Changelog: go-git/go-git@v6.0.0-alpha.1...v6.0.0-alpha.2


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@qubesome-renovate
Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 5 additional dependencies were updated

Details:

Package Change
github.com/go-git/go-billy/v6 v6.0.0-20260226131633-45bd0956d66f -> v6.0.0-20260328065524-593ae452e14d
golang.org/x/crypto v0.48.0 -> v0.50.0
golang.org/x/net v0.51.0 -> v0.53.0
golang.org/x/sync v0.19.0 -> v0.20.0
golang.org/x/text v0.34.0 -> v0.36.0

@qubesome-renovate qubesome-renovate Bot changed the title fix(deps): update module github.com/go-git/go-git/v6 to v6.0.0-alpha.2 [security] fix(deps): update module github.com/go-git/go-git/v6 to v6.0.0-alpha.2 [security] - autoclosed Apr 21, 2026
@qubesome-renovate qubesome-renovate Bot deleted the renovate/go-github.com-go-git-go-git-v6-vulnerability branch April 21, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants