CVE-2026-70406
Gitea private comparison disclosure with public-only tokens
- State
- Published
- Severity
- 6.5 Medium
- Published
- Oct 14, 2026
- Updated
- Oct 14, 2026
- Reserved
- Aug 13, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.5 Medium | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | CISA-ADP |
Weaknesses
- CWE-863 Incorrect Authorization
Affected Products
| Product | Versions |
|---|---|
GiteaGitea |
|
References
- GitHub Security Advisory GHSA-m78w-jjjx-gp8rvendor-advisory
- Gitea 1.27.3 release announcementrelease-notes
- Fix: go-gitea/gitea pull request #39006patch
- Fix: go-gitea/gitea pull request #39013patch
- go-gitea/gitea v1.27.3 releaserelease-notes
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.