Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. GHSA-rjvx-x5h2-6px5

GHSA-rjvx-x5h2-6px5: Gitea: API Fork Endpoint Authorization Bypass Allows Organization Members to Bypass Repository Creation Restrictions

July 21, 2026

The API endpoint used to fork repositories into organizations performs a weaker authorization check than the corresponding web UI and other repository creation endpoints.

When a repository is forked into an organization through the API, the endpoint only verifies that the user is an organization member (IsOrgMember()), but does not verify whether the user is allowed to create repositories in that organization (CanCreateOrgRepo()).

As a result, organization members belonging to teams with can_create_org_repo=false can still create repositories inside the organization by using the fork API.

References

  • github.com/advisories/GHSA-rjvx-x5h2-6px5
  • github.com/go-gitea/gitea/commit/686d10b7f0c26baf91171124b382cbcdfa7bf025
  • github.com/go-gitea/gitea/pull/36950
  • github.com/go-gitea/gitea/releases/tag/v1.26.0
  • github.com/go-gitea/gitea/security/advisories/GHSA-rjvx-x5h2-6px5

Code Behaviors & Features

Detect and mitigate GHSA-rjvx-x5h2-6px5 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.26.0

Fixed versions

  • 1.26.0

Solution

Upgrade to version 1.26.0 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

go/code.gitea.io/gitea/GHSA-rjvx-x5h2-6px5.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:41 +0000.