CVE-2026-70406
JSON

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 packageVersionsReported by
code.gitea.io/giteaup to 1.27.2CVE List

Classification

CWE-863

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-70406 changed 2026-10-14CVE Terms of Use
NVDCVE-2026-70406 changed 2026-10-14Public domain