NetSight
medium5.4

CVE-2026-89182

With `[repository] FORCE_PRIVATE = true`, Gitea creates new repositories as private, but the post-receive hook still applied the `repo.private=false` push opti…

Impact

With `[repository] FORCE_PRIVATE = true`, Gitea creates new repositories as private, but the post-receive hook still applied the `repo.private=false` push option to an empty repository created by push. Any user who can create repositories could make their new repository public in violation of the instance policy. The default configuration is not affected.

Affected products

VendorProductAffected versions
GiteaGitea
from 1.27.0 before 28.1.0

Weakness classification

References