We are excited to announce the release of Gitea 28.4.0 , the fourth maintenance release for the 28 series. It contains a number of security fixes, among them fixes for command execution through repository auto-initialization and for the disclosure of password hashes through the repository , and bug fixes for Actions, issues, pull requests, repositories and packages. We strongly recommend that all users upgrade as soon as possible.
This release addresses the following security vulnerabilities. Please upgrade as soon as possible.
CVE-2026-97054 : The release binaries are now built with Go 1.27.4, which fixes a crash of HTTP/1 servers in net/http when a request exceeds a MaxBytesReader limit. Go 1.27.4 also fixes a number of issues in the go command, the compiler and the linker, which only matter when building untrusted code. Updated by #40315 / #40318 .
CVE-2026-125423 : A repository created with auto-init accepted pushes before its initialization had finished, and the initial commit was built on top of whatever the repository already contained. A user who is allowed to create repositories could push a crafted tree in that window, so that writing the README followed a symbolic link, overwrote a git hook on the server and ran commands as the Gitea system user. The initial commit is now built in a fresh directory, and a new repository only accepts pushes once it is fully initialized. Fixed by #40376 / #40383 . Thanks to @grigorovichvlad for reporting the issue, and to @bircni and @lunny for the patch.
CVE-2026-123006 : The repository used by the dashboard ( GET /repo/ ) returned the internal commit status object of each repository, which since 28.0.0 included the repository owner’s full user record. Any signed-in user could read the password hash, salt and email address of the owner of any visible repository that has a commit status. The response now only contains the state and target URL of the status. Fixed by #40377 / #40384 . Thanks to @lichoin and @Tfo0 for reporting the issue, and to @bircni for the patch.
CVE-2026-123065 : When a release was edited, the files of removed attachments were deleted by the identifiers submitted in the form instead of by the attachments verified to belong to the release. A user with write access to the releases of any repository, their own included, could delete the stored file of any attachment on the instance whose UUID they knew. Fixed by #40120 / #40268 . Thanks to @HexDump0 and @ivantsepp for reporting the issue, and to @silverwind for the patch.
CVE-2026-123638 : The “Protected file patterns” of a branch protection rule were checked against file names as git prints them, and git quotes names that contain a double quote, a backslash or a control character. Such names never matched a pattern, so a user with write access could add or change files under a protected pattern by push or pull request merge, for example a workflow file where the patterns protect the workflow directory. Fixed by #40362 . Thanks to @Bryan-Project and @yagcioglutoprak for reporting the issue, and to @lunny for the patch.
CVE-2026-126338 : Replying to a code review accepted the ID of a review from another pull request. A signed-in user could use the ID of a review in a repository they cannot read and got the diff context of the commented lines copied into their own . Fixed by #40131 / #40281 . Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-120729 : The popup shown when hovering an issue reference loaded its data from the path of the hovered link and inserted part of the response as HTML. A user could post a link that looks like an ordinary issue reference but points to a file in their own repository, and script from that file ran in the session of anyone hovering the link. Fixed by #40207 / #40225 . Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-118535 : A repository registered as an owner-level source of scoped workflows kept that registration when it was transferred. The new owner could change its workflows, which kept running in the owner’s repositories with their Actions secrets and tokens. A transfer now removes the registration. Fixed by #40131 / #40281 . Thanks to @danieltk76 , @lmonstergg and @BOTecko for reporting the issue, and to @silverwind for the patch.
CVE-2026-123002 : Gitea accepted an unlimited number of wrong TOTP passcodes at sign-in, in the password reset flow and for Basic authentication with the X-Gitea-OTP header. Someone who already knew an account’s password could guess the six-digit code. After five failed passcodes, further attempts for the account are now refused for 15 minutes. Fixed by #39993 / #40374 . Thanks to @SakusenSec , @Pedromdsn , @sandiyochristan and @glenaster for reporting the issue, and to @sandiyochristan for the patch.
CVE-2026-123009 : The web editor can copy a branch from the base repository into a fork before a file is edited, and did so without checking that the user may still read the base repository. A user who had forked a repository and later lost access to it could keep reading its current code. Fixed by #40131 / #40281 . Thanks to @adamyordan for reporting the issue, and to @silverwind for the patch.
CVE-2026-118389 : The RubyGems registry accepted gems whose platform or dependency fields contain newline characters. Because the compact index is line-based, a user who can publish a gem to a registry could forge index entries, for example extra versions of an existing gem with dependencies of their choice, which clients resolving from that registry would then install. This was fixed in 28.3.0 and is disclosed with this release. Fixed by #39782 / #39900 . Thanks to @nithissh7 and @hariprasanth9317-tech for reporting the issue, and to @basavaraj-sm05 for the patch.
CVE-2026-129525 : Several endpoints that serve both issues and pull requests did not check which of the two an item is, so a user who can read a repository’s issues but not its pull requests could read pull request data, and the other way round. The issue sub-resources of the API (timeline, attachments, labels, subscriptions, tracked times, reactions) were fixed in 28.2.0 and 28.3.0; this release fixes the repository issue and the milestone pages. Fixed by #39839 / #39847 , #39885 / #39938 and #40192 / #40375 . Thanks to @hexcraft-labs , @d3do-23 , @takumi142857-git , @N0K0 , @zzy13051013697 , @HexDump0 and @123abab123789 for reporting the issue, and to @basavaraj-sm05 and @silverwind for the patch.
CVE-2026-128365 : Removing a team’s review request looked up a review by the negated team ID, which for the team with ID 2 is the built-in Actions user, and marked that review as official. In the organization that owns that team, a user who can change review requests could make an approval by the Actions user count toward the required approvals. Fixed by #40120 / #40268 . Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-129337 : Git over HTTP relies on a repository’s server-side hooks to enforce write access. A repository that is still being created by a migration, fork or template generation has no hooks yet, so a user with read access could push to it during that window. Fixed by #40120 / #40268 . Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-129341 : The web endpoint that removes an attachment skipped the permission check for the user who had uploaded it and only required read access to issues or pull requests. A user who had uploaded a release asset could still delete it after losing write access. Fixed by #40120 / #40268 . Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-120991 : When a container blob upload was rejected, for example for exceeding a package size quota, the cleanup removed the blob from storage even if the same content was already used by other packages. On instances with a package quota, a user who had the exact content of another owner’s package file or image layer could make it undownloadable. Fixed by #40120 / #40268 . Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-123642 : The AGit flow (pushing to refs/for/... ) did not check the pusher’s access to pull requests when it created the pull request. A user or deploy key with read access to the code only, or with write access to the wiki, could open pull requests in a repository where they have no access to pull requests. Fixed by #40131 / #40281 . Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-125617 : GET /api/v1/users/{username}/orgs/{org}/permissions returned a user’s role in a public or limited organization to any signed-in user, which revealed concealed memberships and their level. The roles are now only returned to the user themselves, to members of the organization and to site administrators. Fixed by #40042 / #40365 . Thanks to @Alien0ne for reporting the issue, and to @basavaraj-sm05 for the patch.
CVE-2026-128359 : When Gitea acts as an OAuth2 or OpenID Connect provider, the token endpoint did not check the state of the user. After an administrator deactivated an account or prohibited its sign-in, its refresh tokens and unused authorization codes still yielded new tokens, so applications that sign users in through Gitea kept them signed in. Fixed by #40131 / #40281 . Thanks to @yagcioglutoprak for reporting the issue, and to @silverwind for the patch.
CVE-2026-120725 : With REQUIRE_SIGNIN_VIEW = true , the Git LFS endpoints still served objects of non-private repositories to unauthenticated clients who knew the repository path and the object’s SHA-256. Fixed by #40131 / #40281 . Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-127958 : A pull request review created through the API as a draft ( event set to PENDING or left empty) was added to the timeline, notifications and activity feeds like a submitted review, so its body and line were visible to everyone who can read the pull request before the reviewer submitted it. Fixed by #40260 / #40272 . Thanks to Anthropic for reporting the issue, and to @lazerg for the patch.
We are grateful to all the security researchers who responsibly disclosed these issues.
A job’s if: condition is evaluated against the jobs it needs that finished in the same pass ( #40126 ), and the Actions API works with repository admin permission ( #40174 ).
Issues and pull requests
Creating issue notifications concurrently no longer deadlocks ( #40166 ), and the API no longer panics on a milestone with a null due date ( #40171 ).
The API locks and unlocks issues as the signed-in user instead of the repository owner ( #40291 ), and task list items checked with an uppercase X are recognized ( #40334 ).
Copied code is pasted as text instead of as a Markdown table ( #40053 ), labels are spaced consistently ( #40261 ), and the markup renderer escapes characters correctly at read buffer boundaries ( #40209 ).
Repositories, Git and organizations
Branches are no longer rolled back when post-receive hooks arrive out of order ( #40110 ), a repository is marked as non-empty before git push returns ( #40102 ), and updating language statistics concurrently no longer deadlocks ( #40167 ).
The wiki blob excerpt is read from the wiki repository ( #40165 ), and the API returns the language of starred and watched repositories ( #40127 ).
The admin permission of a team is applied correctly to its members ( #40353 ), and the API no longer allows renaming the Owners team of an organization ( #40381 ).
Changing the address of a pull mirror no longer reuses the stored credentials for a new host ( #39991 ).
Accounts, packages and auditing
The full name can be cleared in the profile settings ( #40186 ).
Container image names allowed by OCI 1.1 are accepted ( #40363 ), and the Chef registry returns empty dependencies instead of null ( #40237 ).
Missing audit events for repositories and their content are recorded, for example for webhooks, branch protections, deploy keys and push mirrors changed through the API ( #40322 ).
WebSocket clients synchronize more reliably ( #38847 ), and a memory leak in the dropdown accessibility patch is fixed ( #40349 ).
The Alpine base packages of the Docker images are upgraded ( #40252 ).
github.com/andybalholm/brotli is updated to v1.2.7 ( #40246 ), levelqueue to v0.5.1 ( #40219 ) and clippie to 4.3.1 ( #40293 ).
This release includes 41 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 .
We would also like to thank all of our supporters on Open Collective who are helping to sustain us financially.
(websocket) Improve client synchronization ( #38847 ) ( #40340 )
(api) Return language of starred and watched repositories ( #40127 ) ( #40157 )
(web) Read the wiki blob excerpt from the wiki repository ( #40165 ) ( #40178 )
(actions) Make Actions API work with repo admin permission ( #40174 ) ( #40180 )
(repo) Avoid deadlock when updating language stats concurrently ( #40167 ) ( #40202 )
(notifications) Avoid deadlock when creating issue notifications concurrently ( #40166 ) ( #40203 )
(api) Don’t panic on null milestone due_on ( #40171 )
(actions) Evaluate job if: against needs finished in the same pass ( #40126 ) ( #40221 )
(web) Build issue popup request from parsed link ( #40207 ) ( #40225 )
Allow clearing the full name in profile settings ( #40186 ) ( #40191 )
(packages) Return empty Chef dependencies instead of null ( #40237 ) ( #40242 )
(deps) Update module github.com/andybalholm/brotli to v1.2.7 [security] ( #40246 ) ( #40249 )
Upgrade Alpine base packages in Docker images ( #40252 ) ( #40253 )
Don’t roll back branches on out-of-order post-receive hooks ( #40110 ) ( #40255 )
(repo) Mark repository as non-empty before git push returns ( #40102 ) ( #40266 )
Add missing checks to several handlers and services ( #40120 ) ( #40268 )
(pull) Don’t add a timeline entry for pending API reviews ( #40260 ) ( #40272 )
Paste copied code as text, not as a markdown table ( #40053 ) ( #40280 )
(deps) Update clippie to 4.3.1 ( #40293 )
Don’t log network error in console when loading issue popup ( #40288 ) ( #40294 )
(markup) Correct character escaping at read buffer boundaries ( #40209 )
(api) Lock and unlock issues as the signed-in user, not the repository owner ( #40291 ) ( #40298 )
(ui) Consistent spacing between labels ( #40261 ) ( #40330 )
Add missing checks to more handlers and services ( #40131 ) ( #40281 )
Handle task list items checked with uppercase X ( #40334 ) ( #40339 )
(queue) Bump levelqueue to v0.5.1 and remove workarounds ( #40219 ) ( #40350 )
(web) Fix memory leak in dropdown ARIA patch ( #40349 ) ( #40364 )
Correctly apply team admin permission to doer ( #40353 ) ( #40356 )
(packages) Accept OCI 1.1 container image names ( #40363 ) ( #40369 )
(api) Hide org roles from non-members ( #40042 ) ( #40365 )
(git) List affected files NUL-separated so special names are not quoted ( #40362 )
(repo) Do not reuse pull mirror credentials for a new host ( #39991 ) ( #40373 )
(issues) Hide unreadable issue types in and milestone views ( #40192 ) ( #40375 )
(api) Do not allow renaming the Owners team ( #40381 ) ( #40387 )
(repo) Limit the commit status fields returned by repo ( #40377 ) ( #40384 )
(audit) Record missing repository and content events ( #40322 ) ( #40390 )
(auth) Limit failed TOTP attempts per account ( #39993 ) ( #40374 )
(repo) Do not check out existing repo content during auto-init ( #40376 ) ( #40383 )
Gitea 28.3.0 is released
bircni , silverwind — Nov 1, 2026
Gitea 28.2.0 is released
bircni — Oct 18, 2026
Gitea 28.1.0 is released
Gitea is open source. Star our GitHub repo, and join our community on Discord!
Stay up to date with all things Gitea
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
