CVE-2026-118395

published 1 Nov 2026 · updated 6 Nov 2026

Gitea public-only token bypass in repository and organization creation

7.5HighCVSS 7.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Gitea 28.3.0.

Gitea 1.27.3 stopped personal access tokens restricted to public resources (`public-only`) from creating repositories through `POST /api/v1/user/repos` and `POST /api/v1/repos/migrate`, but `POST /api/v1/org/{org}/repos`, `POST /api/v1/orgs/{org}/repos`, `POST /api/v1/orgs` and `POST /api/v1/repos/{owner}/{repo}/generate` still accepted such tokens. A holder of a public-only token with the needed write scopes could create private repositories in organizations where the token's owner may create repositories, create private organizations, and generate private repositories from templates. The token still could not read the private repositories it created.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GiteaGitea<28.3.028.3.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Gitea, strongest first

10.0CriticalCISA KEVPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-118395 severity on Zeptric[![CVE-2026-118395](https://zeptric.io/badge/cve/CVE-2026-118395.svg)](https://zeptric.io/cve/CVE-2026-118395)