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

Medium 6.5 Published Updated

Attackers with public-only tokens can access private repository commit history and diffs by exploiting missing authorization checks in comparison helpers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-70406?

CVE-2026-70406 is a medium-severity missing authorization vulnerability in Gitea, published on 14 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-863

Which versions are affected by CVE-2026-70406?

How do I fix CVE-2026-70406?

No fix has been published for CVE-2026-70406 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-70406 being exploited?

There is no known exploitation of CVE-2026-70406 in the wild and no public exploit code.

Sources

Also known as GHSA-m78w-jjjx-gp8r.

Is CVE-2026-70406 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free