CVE-2026-70406
6.5medium
Gitea private comparison disclosure with public-only tokens
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Gitea
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
| Product or package | Versions | Reported by |
|---|---|---|
| code.gitea.io/gitea | up to 1.27.2 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-70406 changed 2026-10-14 | CVE Terms of Use |
| NVD | CVE-2026-70406 changed 2026-10-14 | Public domain |