CVE-2026-26231 Gitea maintainer-edit permissions allow unauthorized commits to readable repositories

High 8.5 Published Updated

Attackers with read access can push unauthorized commits to repositories due to flawed maintainer edit permission checks.

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-26231?

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

Official description

Gitea versions up to and including 1.26.1 allow the Allow edits from maintainers permission path to authorize commits to repositories that the user can read but should not be able to write.

Weakness: CWE-863

Which versions are affected by CVE-2026-26231?

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

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.26.2
code.gitea.io/gitea GoAll versions1.26.2
code.gitea.io/gitea GoAll versions1.26.2

How do I fix CVE-2026-26231?

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

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

Is CVE-2026-26231 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-26231 exists.

Sources

Also known as GHSA-mm7c-rhg6-qr4r, GO-2026-5510.

Is CVE-2026-26231 in your software?

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

Check your SBOMs for free