CVE-2026-70406
Gitea private comparison disclosure with public-only tokens
CVSS Score
6.5
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-863 |
| Vendor | gitea |
| Product | gitea |
| Published | Oct 14, 2026 |
| Last Updated | Oct 14, 2026 |
Stay Ahead of the Next One
Get instant alerts for gitea gitea
Be the first to know when new medium vulnerabilities affecting gitea gitea are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Gitea / Gitea
0 โค 1.27.2
References
github.com: https://github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r blog.gitea.com: https://blog.gitea.com/release-of-1.27.3/ github.com: https://github.com/go-gitea/gitea/pull/39006 github.com: https://github.com/go-gitea/gitea/pull/39013 github.com: https://github.com/go-gitea/gitea/releases/tag/v1.27.3
Credits
๐ https://github.com/qw3rtyou https://github.com/bircni ๐ https://github.com/ohxorud-dev