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

Published Oct 14, 2026
·
Updated

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 Software

1 affected component
Gitea Gitea

Event History

Oct 14, 2026
CVE Published
via MITRE·02:36 PM
Data Sourced
via MITRE·02:36 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this disclosure?

Gitea deployments are exposed where a token is restricted to public repositories but its owner still has permission to access a private repository. The issue does not grant access beyond the repository permissions already held by the token owner.

2

What does an attacker need to exploit it?

The attacker needs a public-only token with read:repository scope and an account that can access the private head repository. They must route a comparison or pull request creation through a public base repository.

3

What information can be disclosed?

The affected flow can reveal commit history and diffs from the private head repository. The disclosure is limited by the token owner's existing repository access.

4

How can teams reduce exposure before applying an update?

Do not use public-only read:repository tokens for accounts that also have access to private repositories, especially where those tokens can create pull requests or request comparisons using public base repositories. Restrict or revoke such tokens until the affected deployment is updated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203