Skip to main content
VulnerabilityPublished

code.gitea.io/gitea · Gitea: API Fork Endpoint Authorization Bypass Allows Organization Members to Bypass Repository Creation Restrictions

Affects code.gitea.io/giteaSource GCVE Database

0

CVSS 5.3 Medium : upgrade to 1.26.0 when convenient.

Data as of 22 Jul 2026, 00:51 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.26.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

What to do

Upgrade code.gitea.io/gitea to 1.26.0.

Affected software

ProductAffectedFixed in
Gocode.gitea.io/giteaAffected
  • <1.26.0
Fixed in
  • 1.26.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in Gitea version 1.26.0 and later. Users should upgrade to version 1.26.0 or above to ensure the API fork endpoint enforces the correct repository creation permissions. Until upgraded, organizations should be aware that members with restricted repository creation rights can bypass these restrictions via the API fork endpoint.

Description

Gitea contains an authorization bypass vulnerability in its API fork endpoint that allows organization members to create repositories despite restrictions. The API endpoint for forking repositories into organizations only checks if the user is a member, not whether they have permission to create repositories. This contrasts with the web UI and other API endpoints that enforce stricter repository creation permissions. The issue affects Gitea versions prior to 1.26.0. Exploiting this flaw allows unauthorized repository creation within organizations, potentially increasing attack surface depending on organizational configurations.

References

Community reviews

Loading reviews…