Gitea 1.26.2 is released
We are excited to announce the release of Gitea 1.26.2! We strongly recommend all users upgrade to this version, as it contains a number of security fixes alongside important bug fixes and stability improvements.
- CVE-2026-27783: fix(permissions): Fix reading permission (#37769) (#37781). Thanks to @hoangperry for the report, and thanks to @lunny for the fix.
- fix(actions): make artifact signature payloads unambiguous (#37707) Thanks to @lunny for the fix.
- CVE-2026-25714: fix: Unify public-only token filtering in API queries and repo access checks (#37118) Thanks to Medoedus for the report. Thanks to @lunny for the fix.
- CVE-2026-20706: fix: Add missed token scope checking (#37735) Thanks to geoo115 for the report. Thanks to @lunny for the fix.
- fix(oauth): bind token exchanges to the original client request (#37704) Thanks to @lunny for the fix.
- fix(oauth): strengthen PKCE validation and refresh token replay protection (#37706) Thanks to @lunny for the fix.
- fix(web): enforce token scopes on raw, media, and attachment downloads (#37698) Thanks to @lunny for the fix.
- fix(security): enforce wiki git writes and LFS token access at request time (#37695) Thanks to @lunny for the fix.
- feat(api): encrypt AWS creds (#37679) Thanks to @Exgene for the report and the fix.
- CVE-2026-27771: fix(packages): Add label for private and internal package and fix composor package source permission check (#37610) Thanks to NoScope for the report. Thanks to @lunny for the fix.
- CVE-2026-28744: fix(git): Fix smart http request scope bug (#37583) Thanks to ohxorud-dev for the report. Thanks to @lunny for the fix.
- CVE-2026-28699: Fix basic auth bug (#37503) Thanks to Wesley Colquitt / ByteShyftStudios LLC / @Alardiians for the report. Thanks to @lunny for the fix.
- CVE-2026-26231: Fix allow maintainer edit permission check (#37479) (#37484) Thanks to Arvin Shivram of Brutecat Security for the report. Thanks to @lunny for the fix.
- Fix URL sanitization to handle schemeless credentials (#37440) (#37471) Thanks @bircni for the fix.
- chore(deps): bump go-git/go-git/v5 to 5.19.0 (#37608)
- fix(deps): update dependency mermaid to v11.15.0 [security], add e2e test
This release includes 54 merged pull requests, thanks to the amazing contributions from our community.
How to install or update
Download our pre-built binaries from the Gitea downloads page — make sure to select the version compatible with your platform. For a step-by-step guide on installation or upgrades, check out our installation documentation
Special Thanks
We would also like to thank all of our supporters on Open Collective who are helping to sustain us financially.
Looking for a seamless, hassle-free solution to manage your Git repositories? Discover Gitea Cloud — A fully-managed, scalable platform designed to streamline your development workflow.
Changelog
1.26.2 - 2026-05-20
-
SECURITY
- Actions
- Make artifact signature payloads unambiguous (#37795)
- Access
- Enforce wiki git writes and LFS token access at request time (#37714)
- API
- Auth
- Branch
- Fix update branch protection order (#37513)
- Dependencies
- Git
- Fix smart http request scope bug (#37605)
- OAuth
- Packages
- Add label for private and internal packages and fix composer package source permission check (#37643)
- Repo
- Fix allow maintainer edit permission check (#37484)
- Web
- Actions
-
BUGFIXES
- Actions
- Fix wrong assumption that run id always >= job id (#37742)
- Fix deadlock between
PrepareRunAndInsertandUpdateTaskByState(#37718) - Run
TransferLogsonUpdateLog{Rows:[], NoMore:true}(#37687) - Fix blank lines after
::endgroup::(#37612) - Report individual step status in workflow job API response (#37598)
- Prevent panic when workflow contains null jobs (#37576)
- Validate workflow param to prevent 500 error (#37554)
- Don't unblock run-level-concurrency-blocked runs in the resolver (#37538)
- Fix scheduled action panic with null event payload (#37466)
- API
- Auth
- Branch
- Allow direct commits for unprotected files with push restrictions (#37756)
- Build
- Fix snap build (1.26) (#37686)
- CLI
- Fix "run as root" check (#37625)
- Dependencies
- Update dependency go to v1.26.3 (#37613)
- Docs
- Remove excessive quote from terraform instructions (#37426)
- Markup
- Make RenderString never fail (#37780)
- Packages
- Permissions
- Fix reading permission (#37781)
- PR
- Handle empty pull request files view to allow reviews (#37785)
- Add
DEFAULT_TITLE_SOURCEsetting for pull request title default behavior (#37766) - Show correct mergebase (#37656)
- Fix merge autodetect when multiple PRs are pushed at once (#37516)
- Fix review submission from single-commit PR view (#37485)
- Fix compare dropdown failing when selecting branch with no common merge-base (#37472)
- Repo
- Templates
- Add
CurrentURLtemplate variable back (#37449)
- Add
- UI
- User
- Web
- Make ServeSetHeaders default to download attachment if filename exists (#37555)
- Actions

