# CVE-2026-118395: Gitea public-only token bypass in repository and organization creation

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-11-01T09:48:51.036Z
- Modified: 2026-11-06T16:17:51.063Z
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Gitea

## Description

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.

(As written by CVE List.)

## Affected

- gitea.dev: before 28.3.0

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x> (vendor-advisory)
- <https://github.com/go-gitea/gitea/pull/39690> (patch)
- <https://github.com/go-gitea/gitea/pull/39853> (patch)
- <https://blog.gitea.com/release-of-28.3.0/> (release-notes)
- <https://github.com/go-gitea/gitea/releases/tag/v28.3.0> (release-notes)

## Sources

- CVE List: [CVE-2026-118395](https://www.cve.org/CVERecord?id=CVE-2026-118395), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-118395](https://nvd.nist.gov/vuln/detail/CVE-2026-118395), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-118395 · Whole record: https://cve.day/CVE-2026-118395.json · Rebuilt by cve.day 2026-11-25T22:59:48.095Z
