Medium severity · published Oct 14, 2026
CVE-2026-70406
Gitea private comparison disclosure with public-only tokens
6.5
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 27% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GI
Gitea · Gitea
through 1.27.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-70406
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-70406
vendor-advisory
https://github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r
release-notes
https://blog.gitea.com/release-of-1.27.3/
patch
https://github.com/go-gitea/gitea/pull/39006
patch
https://github.com/go-gitea/gitea/pull/39013
release-notes
https://github.com/go-gitea/gitea/releases/tag/v1.27.3
More from Gitea
9.8
CVE-2026-60004
Gitea Code Injection Vulnerability
9.8
CVE-2026-59774
Gitea Org-mode file disclosure and code execution
9.8
CVE-2026-73278
Gitea WebAuthn bypass during OAuth and OIDC sign-in
9.8
CVE-2026-94205
Gitea fork workflow approval bypass through maintainer-triggered events
9.8
CVE-2022-42968
Gitea before 1.17.3 does not sanitize and escape refs in the git backend
