# CVE-2026-70400: Gitea private migration creation with public-only tokens

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- 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.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-10-14T14:36:41.612Z
- Modified: 2026-10-14T16:17:51.783Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Gitea

## Description

Gitea's repository migration API accepts a public-only token when the request specifies creation of a private repository. A delegated token intended to operate only on public resources can create a private repository and migration task under the authorizing account or an organization where that user has the necessary permissions. The ordinary private repository-creation route rejects the same token, but the migration path omits that restriction.

(As written by CVE List.)

## Affected

- code.gitea.io/gitea: up to 1.27.2

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-x58h-3mx5-q44r> (vendor-advisory)
- <https://blog.gitea.com/release-of-1.27.3/> (release-notes)
- <https://github.com/go-gitea/gitea/pull/39007> (patch)
- <https://github.com/go-gitea/gitea/pull/39014> (patch)
- <https://github.com/go-gitea/gitea/releases/tag/v1.27.3> (release-notes)

## Sources

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

---

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