Bug 300499 - www/gitea: Security update 28.2.0 => 28.3.0, fix 21 CVEs
Summary: www/gitea: Security update 28.2.0 => 28.3.0, fix 21 CVEs
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Älven
URL: https://blog.gitea.com/release-of-28....
Keywords:
Depends on:
Blocks:
 
Reported: 2026-11-04 10:47 UTC by Mamadou Babaei
Modified: 2026-11-05 16:03 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (ports)
alven: merge-quarterly-


Attachments
www/gitea update to v28.3.0 (968 bytes, patch)
2026-11-04 10:47 UTC, Mamadou Babaei
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mamadou Babaei 2026-11-04 10:47:42 UTC
Created attachment 276968 [details]
www/gitea update to v28.3.0

Gitea v28.3.0 has been released three days ago, which addresses the following 21 CVEs: 

CVE-2026-111943: The release binaries are now built with Go 1.27.3, which no longer trusts a set of intermediate certificates because of security concerns around the issuing certificate authority. This applies to the certificate checks of Gitea’s outgoing connections, for example to OAuth2 providers, webhooks, mirrors and migrations. Updated by #39881 / #39896.
CVE-2026-120263: With ACCOUNT_LINKING = auto and open registration, the link-account sign-up form let a user who signed in through an OAuth2 provider enter the user name or email address of an existing account, which was then linked to the external identity and signed in without a password. Gitea now only auto-links the account that the external identity’s email or user name points to. Fixed by #40121 / #40137. Thanks to @adrian-doyensec, @AdamKorcz, @DshtAnger and @ivantsepp for reporting the issue, and to @bircni for the patch.
CVE-2026-118386: A user with read access could submit a pull request review whose commit_id named their own commit, on a pull request whose head branch is in the same repository. The pull_request_review workflows were then read from that commit and ran without approval, with the repository’s secrets and a token that can write to it. Review-triggered workflows now run on the pull request head. Fixed by #40099 / #40117. Thanks to Anthropic for reporting the issue, and to @silverwind for the patch.
CVE-2026-117635: The public-only token restriction was not applied to the admin API, so a public-only token of a site administrator could list the email addresses of all users, create private organizations and runner registration tokens, and create new administrators. Fixed by #39690 / #39853. Thanks to @assakafpix and @torjan0 for reporting the issue, and to @silverwind for the patch.
CVE-2026-119441: DELETE /api/v1/orgs/{org}/repos did not reject public-only tokens, so such a token of an organization owner could delete all repositories of the organization, private ones included. Fixed by #39690 / #39853. Thanks to @K3y5tr0ke for reporting the issue, and to @silverwind for the patch.
CVE-2026-116296: The release, milestone and label API routes did not reject changes to archived repositories, so a user with write access could replace release assets, delete releases, and change milestones and labels of an archived repository. The API now rejects changes to issues, comments, labels, milestones and releases of archived repositories. Fixed by #39942 / #40085. Thanks to @Yusufbek10 and @thalewalan for reporting the issue, and to @bircni for the patch.
CVE-2026-117685: The OCI cross-repository blob mount checked access to the source blob with the user’s full permissions instead of the token’s, so a public-only package token could mount a private blob into a public package and read it. Fixed by #39690 / #39853. Thanks to @ohxorud-dev for reporting the issue, and to @silverwind for the patch.
CVE-2026-113429: The legacy Actions artifact upload stored the Content-Encoding request header without a check and served it back as the Content-Type of the download, so a workflow could upload an artifact that is rendered as HTML on the Gitea origin (stored XSS) when a victim opens its download link. The header is no longer stored. Fixed by #39855 / #39996. Thanks to @yagcioglutoprak for reporting the issue, and to @basavaraj-sm05 for the patch.
CVE-2026-118394: The OIDC userinfo endpoint read the token scope only from the Authorization header, so a public-only token sent as a query parameter received the user’s private organizations and teams in the groups claim. Fixed by #39690 / #39853. Thanks to @N0K0 for reporting the issue, @lunny for the analysis, and to @silverwind for the patch.
CVE-2026-119625: /{username} accepted a token sent as HTTP Basic without checking its scope, so a token with an unrelated scope could read the owner’s private activity through the user feed (.rss / .atom), and a public-only token could see private repositories and organizations on the profile pages. Profile pages now treat token requests as anonymous, and user and organization feeds require read:user or read:organization. Fixed by #39945 / #40115. Thanks to @carfeii, @DshtAnger, @manus-pi and @cruzzer for reporting the issue, @lunny for the analysis, and to @bircni for the patch.
CVE-2026-119627: The web profile pages and RSS/Atom feeds of users and organizations with limited visibility were shown to public-only tokens. Fixed by #39690 / #39853 and #39945 / #40115. Thanks to @manus-pi for reporting the issue, and to @silverwind and @bircni for the patch.
CVE-2026-112887: Actions task tokens carry no token scope, and repository filters treated the negative ID of the Actions system user as “no owner filter”, so a job’s GITEA_TOKEN could list every private repository of the instance through GET /api/v1/user/repos. System users now own nothing, and the /api/v1/user routes only accept individual and bot accounts. Fixed by #39945 / #40115. Thanks to @csidhant for reporting the issue, and to @bircni for the patch.
CVE-2026-116474: A job’s GITEA_TOKEN could add an email address and a GPG key to the gitea-actions system user, so commits signed with that key were shown as signed by the instance. Only the displayed signature status was affected. Fixed by #39945 / #40115. Thanks to Anthropic for reporting the issue, and to @bircni for the patch.
CVE-2026-116289: A public-only token with write:organization of an organization owner could create an organization runner registration token. A runner registered with it then received jobs, including their secrets, from the organization’s private repositories. Fixed by #39690 / #39853. Thanks to @kimc0gi for reporting the issue, and to @silverwind for the patch.
CVE-2026-117646: The repositories, stars and watching tabs of user profiles and the organization home page showed private repositories to public-only tokens. Fixed by #39690 / #39853. Thanks to @nicetrykiddo and @d3do-23 for reporting the issue, and to @silverwind for the patch.
CVE-2026-118395: The deprecated POST /api/v1/org/{org}/repos route did not reject public-only tokens, so such a token could create private repositories in an organization. Fixed by #39690 / #39853. Thanks to @DshtAnger, @tao0845, @d3do-23, @venkatchalla06 and @shmulc8 for reporting the issue, and to @silverwind for the patch.
CVE-2026-114199: GET /api/v1/users/{username}/heatmap counted contributions to private repositories for public-only tokens. Fixed by #39690 / #39853. Thanks to @d3do-23 for reporting the issue, and to @silverwind for the patch.
CVE-2026-117649: The issue timeline showed private issues that were linked as dependencies to users who could not read them: the web page showed their title, and the API returned the full issue including its body. Fixed by #39942 / #40085. Thanks to @d3do-23, @kaveeshanirmal141, @manus-pi, @baek9, @bruhdev1290 and @yagcioglutoprak for reporting the issue, @lunny for the analysis, and to @bircni for the patch.
CVE-2026-119533: Project boards showed the title, number, state and repository of private pull requests that referenced an issue on the board to visitors who could not read them. Fixed by #40016 / #40134. Thanks to @GrimTheRipper-SOSECURE, @bruhdev1290 and @yagcioglutoprak for reporting the issue, @lunny for the analysis, and to @basavaraj-sm05 for the patch.
CVE-2026-118504: Several issue API routes did not reject changes to archived repositories, so a user with write access could still change deadlines, tracked times, stopwatches, reactions, pins and blocking issues in an archived repository. 28.2.0 already blocked editing, deleting and relabeling issues, and this release covers all remaining issue routes. Fixed by #39942 / #40085. Thanks to @DevNoScope and @nithissh7 for reporting the issue, and to @bircni for the patch.
CVE-2026-117677: The Helm chart upload inflated the whole archive before the package size quota was checked, without a size limit, so a user with package write access could tie up the server with a small, highly compressed upload. The amount of data inflated is now bounded. Fixed by #39942 / #40085. Thanks to @skeletonsec, @jisung-02 and @kewmine for reporting the issue, and to @bircni for the patch.
Comment 1 Rafael Grether 2026-11-05 02:06:28 UTC
^Triage: Duo to several CVEs, we need VuXML entries. Merge quarterly.
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-11-05 09:18:26 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1a47eeb7e5d3eddaa373e2b7a7bf33613622ce85

commit 1a47eeb7e5d3eddaa373e2b7a7bf33613622ce85
Author:     Yusuf Yaman <nxjoseph@FreeBSD.org>
AuthorDate: 2026-11-05 09:16:11 +0000
Commit:     Yusuf Yaman <nxjoseph@FreeBSD.org>
CommitDate: 2026-11-05 09:16:11 +0000

    security/vuxml: Document www/gitea vulnerabilities

    PR:             300499
    Approved by:    osa, vvd (mentors, implicit)

 security/vuxml/vuln/2026.xml | 103 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 103 insertions(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-11-05 16:00:36 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4d2e00911ddaa5f72c2833a803627a107da6be05

commit 4d2e00911ddaa5f72c2833a803627a107da6be05
Author:     Mamadou Babaei <info@babaei.net>
AuthorDate: 2026-11-05 15:37:18 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2026-11-05 15:59:10 +0000

    www/gitea: Security update 28.2.0 => 28.3.0, fix 21 CVEs

    It contains a large number of security fixes, mostly around token
    scopes, and bug fixes and performance improvements for Actions,
    issues, pull requests and packages.

    We strongly recommend that all users upgrade as soon as possible.

    URL: https://blog.gitea.com/release-of-28.3.0/

    PR:             300499
    Approved by:    portmgr@ (blanket, security fix)
    MFH:            2026Q4

 www/gitea/Makefile | 6 +++---
 www/gitea/distinfo | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-11-05 16:01:37 UTC
A commit in branch 2026Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=319d10b1445a3839eb8962dc01fcc0b158c03769

commit 319d10b1445a3839eb8962dc01fcc0b158c03769
Author:     Mamadou Babaei <info@babaei.net>
AuthorDate: 2026-11-05 15:37:18 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2026-11-05 16:00:48 +0000

    www/gitea: Security update 28.2.0 => 28.3.0, fix 21 CVEs

    It contains a large number of security fixes, mostly around token
    scopes, and bug fixes and performance improvements for Actions,
    issues, pull requests and packages.

    We strongly recommend that all users upgrade as soon as possible.

    URL: https://blog.gitea.com/release-of-28.3.0/

    PR:             300499
    Approved by:    portmgr@ (blanket, security fix)
    MFH:            2026Q4

    (cherry picked from commit 4d2e00911ddaa5f72c2833a803627a107da6be05)

 www/gitea/Makefile | 6 +++---
 www/gitea/distinfo | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
Comment 5 Älven freebsd_committer freebsd_triage 2026-11-05 16:03:34 UTC
Committed. Thank you!