Vulnerability · Published Oct 14, 2026 · Assigned by Gitea
CVE-2026-70406Gitea private comparison disclosure with public-only tokens
Medium 6.5
In plain English
A medium-severity incorrect authorization in Gitea from Gitea. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities).
Official description
Gitea's shared comparison helper omits the token repository-access check used when updating pull requests. A public-only token with read:repository scope can route a comparison or pull request creation through a public base repository and retrieve commit history and diffs from a private head repository accessible to the token owner. This bypasses the token's public-only restriction; it does not remove the account's underlying repository permission checks.
Affected products (as reported)
Weakness: CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- GitHub Security Advisory GHSA-m78w-jjjx-gp8r vendor-advisory
- Gitea 1.27.3 release announcement release-notes
- Fix: go-gitea/gitea pull request #39006 patch
- Fix: go-gitea/gitea pull request #39013 patch
- go-gitea/gitea v1.27.3 release release-notes