CVE-2026-57886 Cross-repository issue/comment attachment re-linking can expose private attachment content

Medium 5.9 Published Updated

Attackers can access private attachment content from other repositories via cross-repository re-linking flaws in Gitea.

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

What is CVE-2026-57886?

CVE-2026-57886 is a medium-severity missing authorization vulnerability in Gitea Open Source Git Server, published on 13 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Cross-repository issue/comment attachment re-linking can expose private attachment content

Weakness: CWE-862, CWE-639

Which versions are affected by CVE-2026-57886?

3 open source packages ship an affected version, including code.gitea.io/gitea and gitea.dev.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.27.0
code.gitea.io/gitea GoAll versions1.27.0
gitea.dev GoAll versions1.27.0

How do I fix CVE-2026-57886?

Upgrade code.gitea.io/gitea to 1.27.0 or later.

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

Is CVE-2026-57886 being exploited?

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

Sources

Also known as GHSA-6c6r-5xr4-cr5m, GO-2026-6035, MINI-7fmc-fx93-mcj5, MINI-qv9w-f2pf-2gwg.

Is CVE-2026-57886 in your software?

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

Check your SBOMs for free