# CVE-2026-70406: Gitea private comparison disclosure with public-only tokens

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-10-14T14:36:53.729Z
- Modified: 2026-10-14T16:17:52.077Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- code.gitea.io/gitea: up to 1.27.2

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-m78w-jjjx-gp8r> (vendor-advisory)
- <https://blog.gitea.com/release-of-1.27.3/> (release-notes)
- <https://github.com/go-gitea/gitea/pull/39006> (patch)
- <https://github.com/go-gitea/gitea/pull/39013> (patch)
- <https://github.com/go-gitea/gitea/releases/tag/v1.27.3> (release-notes)

## Sources

- CVE List: [CVE-2026-70406](https://www.cve.org/CVERecord?id=CVE-2026-70406), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2026-70406](https://nvd.nist.gov/vuln/detail/CVE-2026-70406), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2026-70406 · Whole record: https://cve.day/CVE-2026-70406.json · Rebuilt by cve.day 2026-11-25T22:59:44.673Z
