What’s Vulnerable › Vulnerabilities

CVE-2026-27780: Gitea pre-receive hook can miss branch-protection checks after scanner errors

Description

Gitea versions before 1.26.0 do not fail closed on bufio.Scanner errors while processing pre-receive hook input, allowing oversized input to bypass branch-protection checks.

Affected products

How to fix

Upgrade to a fixed version: Gitea Open Source Git Server 1.26.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-27780 or the next vulnerability affects your stack