CVE-2026-70406
published medium CVSS 3.1 · 6.5Gitea private comparison disclosure with public-only tokens
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | code.gitea.io/giteaGitea · 0 through 1.27.2 · Other versions: unaffected | Affected | Not stated | Gitea |
| Alpine Linux | edge | gitea | Fixed | 1.27.3-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 0 through 1.27.2 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
1- CWE-863 CWE-863: Incorrect Authorization
References
5- Gitea 1.27.3 release announcement https://blog.gitea.com/release-of-1.27.3/
- Fix: go-gitea/gitea pull request #39006 https://github.com/go-gitea/gitea/pull/39006
- Fix: go-gitea/gitea pull request #39013 https://github.com/go-gitea/gitea/pull/39013
- go-gitea/gitea v1.27.3 release https://github.com/go-gitea/gitea/releases/tag/v1.27.3
- GitHub Security Advisory GHSA-m78w-jjjx-gp8r https://github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r
Provider assertions
2Gitea · cna
Gitea private comparison disclosure with public-only tokens
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- adc858b563f07255f230642ba23e52e8f5cbebdc70149c46928614d7fc1a06ce
- Ingested
- 14 Oct 2026, 20:30:39 UTC
- Source record
- Official CVE record