Skip to content

Bump min go version to 1.26.2#37139

Merged
silverwind merged 2 commits intogo-gitea:mainfrom
silverwind:fix-govulncheck
Apr 8, 2026
Merged

Bump min go version to 1.26.2#37139
silverwind merged 2 commits intogo-gitea:mainfrom
silverwind:fix-govulncheck

Conversation

@silverwind
Copy link
Copy Markdown
Member

@silverwind silverwind commented Apr 8, 2026

Update Go from 1.26.1 to 1.26.2 to fix 6 stdlib vulnerabilities:

  • GO-2026-4947: crypto/x509 chain building
  • GO-2026-4946: crypto/x509 policy validation
  • GO-2026-4870: crypto/tls KeyUpdate DoS
  • GO-2026-4869: archive/tar unbounded allocation
  • GO-2026-4866: crypto/x509 name constraints bypass
  • GO-2026-4865: html/template XSS

For https://github.com/go-gitea/gitea/security/dependabot/199: Update go.etcd.io/bbolt to include fix for CVE-2026-33817 (GO-2026-4923, index out-of-range on branch page with zero elements). No tagged release exists yet, so using pseudo-version etcd-io/bbolt@b39d36f from release-1.4 branch which contains the fix (etcd-io/bbolt#1172).


This PR was written with the help of Claude Opus 4.6

Update Go from 1.26.1 to 1.26.2 to fix 6 stdlib vulnerabilities
(CVE-2026-33817 bbolt, crypto/x509, crypto/tls, archive/tar,
html/template). Update go.etcd.io/bbolt to include fix for
CVE-2026-33817 (index out-of-range on branch page with zero elements).

Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 8, 2026
@silverwind silverwind changed the title Fix govulncheck findings Fix govulncheck findings, update min go version to 1.26.2 Apr 8, 2026
@silverwind silverwind added the backport/v1.26 This PR should be backported to Gitea 1.26 label Apr 8, 2026
@silverwind
Copy link
Copy Markdown
Member Author

silverwind commented Apr 8, 2026

According to golang/vulndb#4938, the bbolt CVE is invalid and may be redacted. I will revert to last published release for now.

Per golang/vulndb#4938, the bbolt CVE
(CVE-2026-33817) is invalid and may be redacted.

Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
@silverwind silverwind changed the title Fix govulncheck findings, update min go version to 1.26.2 Bump min go version to 1.26.2 Apr 8, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 8, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 8, 2026
@silverwind silverwind merged commit d600968 into go-gitea:main Apr 8, 2026
26 checks passed
@silverwind silverwind deleted the fix-govulncheck branch April 8, 2026 15:56
@GiteaBot GiteaBot added this to the 1.27.0 milestone Apr 8, 2026
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Apr 8, 2026
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Apr 8, 2026
Update Go from 1.26.1 to 1.26.2 to fix 6 stdlib vulnerabilities:
- GO-2026-4947: `crypto/x509` chain building
- GO-2026-4946: `crypto/x509` policy validation
- GO-2026-4870: `crypto/tls` KeyUpdate DoS
- GO-2026-4869: `archive/tar` unbounded allocation
- GO-2026-4866: `crypto/x509` name constraints bypass
- GO-2026-4865: `html/template` XSS

Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
silverwind added a commit that referenced this pull request Apr 8, 2026
Backport #37139 by @silverwind

Update Go from 1.26.1 to 1.26.2 to fix 6 stdlib vulnerabilities:
- GO-2026-4947: `crypto/x509` chain building
- GO-2026-4946: `crypto/x509` policy validation
- GO-2026-4870: `crypto/tls` KeyUpdate DoS
- GO-2026-4869: `archive/tar` unbounded allocation
- GO-2026-4866: `crypto/x509` name constraints bypass
- GO-2026-4865: `html/template` XSS

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
silverwind added a commit to silverwind/gitea that referenced this pull request Apr 8, 2026
…license

* origin/main:
  Update go dependencies (go-gitea#37141)
  Update javascript dependencies (go-gitea#37142)
  Bump min go version to 1.26.2 (go-gitea#37139)
  Add bulk repository deletion for organizations (go-gitea#36763)
  [skip ci] Updated translations via Crowdin

# Conflicts:
#	package.json
#	pnpm-lock.yaml
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 9, 2026
* main:
  models/fixtures: add "DO NOT add more test data" comment to all yml fixture files (go-gitea#37150)
  Frontport changelog of v1.26.0-rc0 (go-gitea#37138)
  Update go dependencies (go-gitea#37141)
  Update javascript dependencies (go-gitea#37142)
  Bump min go version to 1.26.2 (go-gitea#37139)
  Add bulk repository deletion for organizations (go-gitea#36763)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/done All backports for this PR have been created backport/v1.26 This PR should be backported to Gitea 1.26 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants