{"id":"CVE-2026-70400","title":"Gitea's repository migration API accepts a public-only token when the request specifies creation of a private repository","summary":"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 u…","severity":"medium","cvss":5.4,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","cwe":["CWE-863"],"published":"2026-10-14","updated":"2026-10-14","sourceUpdated":"2026-10-14T16:17:51.783","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-70400","references":[{"url":"https://blog.gitea.com/release-of-1.27.3/","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/pull/39007","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/pull/39014","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.3","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-x58h-3mx5-q44r","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"}],"tags":["nvd"],"ingestedAt":"2026-10-14T15:36:14.026Z","slug":"CVE-2026-70400","body":"## Overview\n\nGitea'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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":29.7,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[{"seq":220352,"id":"CVE-2026-70400","ts":1791996231061,"field":"cvss","old":null,"new":"5.4"},{"seq":220351,"id":"CVE-2026-70400","ts":1791996231061,"field":"severity","old":"none","new":"medium"}]}